cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lguzmanc433
Frequent Visitor

Group By the items in a Gallery

Hi, 

 

I found this article which was kinda useful for learning how to group the items inside the a gallery.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Combining-Filter-and-group-by-in-Gallery/td-...

 

But in the Gallery, I'm only able to retrieve the value that I have grouped by. I have 2 other values that for all groups that would be the same which are called title and country. 

 

Here's my method for filtering and grouping:

 

 

GroupBy(Filter(CoursesRequestedByUser, User().Email = 'Created By'.Email),"Request_Number", "Group")

 

 

image.png

As it could be seen, I'm just able to retriev in the Gallery the request number.

image.png

How could I show other items in it? 

 

I thought about something like this: 

 

image.png

 

Every title in a group has the same data. I just want to display it. 

 

Please Help!

 

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @lguzmanc433 try GroupBy(Filter(CoursesRequestedByUser, User().Email = 'Created By'.Email),"Title", "Country","Request_Number", "Group")

 

hope it helps you.

 

View solution in original post

2 REPLIES 2
rubin_boer
Super User
Super User

hi @lguzmanc433 try GroupBy(Filter(CoursesRequestedByUser, User().Email = 'Created By'.Email),"Title", "Country","Request_Number", "Group")

 

hope it helps you.

 

View solution in original post

So easy... thanks! @rubin_boer 

 

I tried that with the country field, but because it is a choice type column it isn't available to be used in the group by function. 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,232)