web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Want to show Group by ...
Power Apps
Unanswered

Want to show Group by fields in Power app

(0) ShareShare
ReportReport
Posted on by 24

Hi All,

I have created a database in SharePoint like below

Volumetric NameVolumeItem Code No.Nominal Volume PortTolerance
Volumetric flask10W 195 244M1221
Volumetric flask10W 195 244M3443
Volumetric flask10W 195 244M5659

 

I want to show group by item based Volumetric Name, Volume & Item Code No. in the power app gallery.

because Volumetric Name, Volume, Item Code all 3 fields are common.

how to show in Power App.

 

Thanks in advance.

 

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @bhalchandra 

    This code will group together the table if you put it in the Items property of the gallery.

     

    GroupBy(
     your_datasource_name
     "Volumetric Name", "Volume", "Item Code No.",
     "GroupedData"
    )

     

    For more examples like this one please check out my FREE Collections Cookbook.

    https://powerusers.microsoft.com/t5/Community-App-Samples/Collections-Cookbook-50-Visual-Examples-amp-Code/td-p/437594

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • bhalchandra Profile Picture
    24 on at

    it shows error , please find attached

    Volumetric Item name is Combo Box.

     

     
    Error1.PNG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @bhalchandra 

    What column type is Volumetric Item Name is SharePoint (examples: single line text, choices, etc.). 

  • bhalchandra Profile Picture
    24 on at

    Its a Choice.

  • mdevaney Profile Picture
    29,991 Moderator on at

    @bhalchandra 

    OK, here's a revised solution to handle the Choices column.

     

    GroupBy(
     AddColumns(
     your_datasource_name,
     "Volumetric Name Text", 
     'Volumetric Name'.Value
     ),
     "Volumetric Name Text", "Volume" , "Item Code No."
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • bhalchandra Profile Picture
    24 on at

    same error , please find attachment 

    My table name is - @CalibrationDB

    Fields - Volumetric Item name , Volume , Item Code no

     

     

    error2.PNG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @bhalchandra 

    You missed a comma after [@CalibrationDB],

  • bhalchandra Profile Picture
    24 on at

    not resolved

    error3.PNG
  • mdevaney Profile Picture
    29,991 Moderator on at

    @bhalchandra 

    You mistyped this code:  'Volumetric Name'.Value

     

    Your screen is showing this instead:  'Volumetric Name".Value

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @bhalchandra ,

    Based on the formula that you mentioned, I think there is something wrong within it. I agree with @mdevaney 's thought almost.

     

    Please consider modify your formula as below:

    GroupBy(
     AddColumns(
     [@CalibrationDB], // do not miss comma operator here
     "Volumetric Item name Value", // specify a different column to your Choice field
     'Volumetric Item name'.Value // SP List Column contains space should be wrapped with single quote rather than double quotes
     ),
     "Volumetric Item name Value", 
     "Volume", 
     "Item Code no"
    )

    Please take a try with above formula, check if the issue is solved on your side.

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard