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 / Group By Function - fo...
Power Apps
Unanswered

Group By Function - for sharepoint records

(0) ShareShare
ReportReport
Posted on by 12

i have created 'interview Tool' application (mobile) just like interview tool template provided in Power apps home page.

My app is connected with SharePoint list.

 

i got a gallery1 with 'position title' data selected on home page. All rest form fields has been set as ' gallery1.Selected.Title'

 

case table is as below -

 

Title   Position Title

A        X

A        Y

A        Z

 

as per above table, this adds 'Three different entries on 'Gallery1' on home page. I mean gallery shows value 'A' three times.

 

if i use 'Groupby' formula, it groups to 1 name so i can see only one value 'A' on home screen. But as because other fields has been set as per 'gallery1.selected', group by section doesnt work!

 

i hope this make sense.

 

can you please advise alternatives!

 

Categories:
I have the same question (0)
  • Abdou Profile Picture
    Microsoft Employee on at

    I don't think I understand your question entirely, but if you're trying to display the grouped items, you would need to add another gallery inside the first one and set its source to the group name you used in the GroupBy function.

     

    Hope this helps 🙂

  • YOG Profile Picture
    12 on at

    Thanks mate for your reply.

     

    Let me make my question bit clear.

     

    i have got a application designed for SharePoint list as below -

     

    DepartmentPosition TitleHiring ManagerJob DescriptionCandidate NameEmail AddressPhone NumberAdditional FeedbackPositionsReview Candidate
    MarketingGD2LD1DesigningAB1@gmail.com5,768,699,303,556Well doneClosed PositionsHired
    MarketingGraphics designerLDRequiredYp@yahoo.com84,844Very good employeeClosed PositionsHired

     

    i got a different screen set up in power apps & home page has gallery filtered by 'Department' column,

     

    i have got two 'marketing' name in department column so data in gallery function is giving me two samilar name field this is where i need help. i want to group 'Department' column.

     

    i did group department column which works fine as it is giving me unique name. just one name 'Marketing' in above table.

     

    i have set up form fields to 'HomePageGallert.Selected.Department' So Group function doesnt work.

     

    How can i solve this problem.

  • YOG Profile Picture
    12 on at

    More Specification....

     

    how to use 'GroupBy' function for SharePoint Data.

  • Abdou Profile Picture
    Microsoft Employee on at
    I still don't quite understand the issue. Can you please post some screenshots showing the problem?
  • YOG Profile Picture
    12 on at

    hello mate, here are some pictures,

     

    as you can see i have got app links to the sharepoint library.

     

    Home screen of the app has 'Gallery2' set up.

     

    if i use 'group by' function on home screen, it doesnt work as form doesn't support groupby function.

    i am not able to set 'form field' property.

    i hope this make sense.

    thanks for your help

    1.png2.png3.png4.pngSharePoint List.png

  • Abdou Profile Picture
    Microsoft Employee on at

    The Form control doesn't support GroupBy because it only shows one item. Also, when using the Form control, you should set its Item property to the Gallery.Selected.

     

    If you want to show the list of positions grouped by department, then drill into each one you need 3 screens:

    1. the first screen shows the list of departments
    2. the second screen shows the list of positions for that department
    3. the third screen shows an individual position

    Let me know if this is what you're trying to accoumplish and I'll help you with that 🙂

     

  • YOG Profile Picture
    12 on at

    Hello mate,

     

    please see link as below. this is an application previewed by Microsoft & i m trying to accomplish excatly the same.

     

    https://web.powerapps.com/webplayer/app?source=portal&screenColor=rgba(126%2c+115%2c+95%2c+1)&apptype=sample&appId=%2fproviders%2fMicrosoft.PowerApps%2fapps%2f2c142864-d795-4c18-89e1-19519a989901

     

    Please advise.

  • YOG Profile Picture
    12 on at

    i would appreciate your help on this.

    please advise any alternatives

  • Abdou Profile Picture
    Microsoft Employee on at

    Sorry about the late reply.

     

    The way you can accomplish that flow is by doing the following:

    • In the "Departments" screen, have a Gallery that lists the list of Departments.
    • In the Positions screen, you can set the Items property of the gallery to something like:
      Filter(Positions, DepartmentId=Departments.Selected.Id)
    • Similarly, in the Candidates screen, you can set the items to something like:
      Filter(Candidates, PositionId=Positions.Selected.Id)

    This way, you won't need to use group by.

     

    Hope this helps.

  • CW Profile Picture
    1,044 on at

    Regarding the example: https://web.powerapps.com/webplayer/app?source=portal&screenColor=rgba(126%2c+115%2c+95%2c+1)&apptype=sample&appId=%2fproviders%2fMicrosoft.PowerApps%2fapps%2f2c142864-d795-4c18-89e1-19519a989901

     

    So how do you download to open and learn???????????????????????? Why does everything with Microsoft have to be so complicated and unfulfilling???? Why cant you just download and open the #%^&5466 thing? Is it becausde it's not a Tuesday with a full moon? You get part way there (seeing the example) try to open and learen hoe it was done and: "sorry kids, you cant do that?" Why...............................um we dont know, that's just the way it is.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard