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 / GroupBy multiple colum...
Power Apps
Answered

GroupBy multiple columns without Nested GroupBY

(0) ShareShare
ReportReport
Posted on by 249

I have a data in following format

categorytaskactivitytime
EnglishWritingEssay8
EnglishWritingEssay2
FrenchWritingLetter 2

 

I wanted to apply GroupBy and get data in following format

categorytaskactivityDATA
EnglishWritingEssay
time
8
2
FrenchWritingLetter
time
2

 

How can I pass multiple columns names to the GroupBy function? Not like nested groupby

 

 

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    You will need to use nested galleries to display data like that.

    GroupBy(ListName, Column1,Column2,Column3,GroupName);

    Now click on the gallery template and like you add any label or text input in the gallery add another gallery inside gallery. Set child gallery's item property as ThisItem.GroupName. Then add a label inside that child gallery and you can use any data from the group using ThisItem. Shane has an amazing video on it. It will help:

     

    https://www.youtube.com/watch?v=MDhIjM08u-w&t=422s

     

  • pcakhilnadh Profile Picture
    249 on at

    Can you also please tell how to update the "DATA" . ie Wha the formula to update time from "8" to 10 using GroupBy table collection ?

  • Verified answer
    v-chenzhi Profile Picture
    Microsoft Employee on at

    Hi @pcakhilnadh 

     

    According to your description, I think you want to update the record of the nested table.

    Currently PowerApps can’t update the nested table, so I provide another method instead.

    I create an collection named Form1 and update the record in Form1 firstly, then groupby the updated Form1.

    Write this on the OnSelect property of Button.

    Patch(
     Form1,
     LookUp(
     Form1,
     time = "8"
     ),
     {
     time: "10"
     }
    );
    ClearCollect(
     Form2,
     GroupBy(
     Form1,
     "category",
     "task",
     "activity",
     "DATA"
     )
    )
    

     

    Best Regards,

    Zhi Chen

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard