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, distinct and ...
Power Apps
Answered

Groupby, distinct and filtering gallery

(0) ShareShare
ReportReport
Posted on by 2
Hi, 
 
I want to create a gallery in PowerApps using groupby, filter and distinct all together but not sure how.
 
I have a set of data where column 'Name' and Action are a choice column, the rest are text.
 
Name (choice) Description (Text) Issues (Text) Action Y/N (Choice)
Company A Product 1 Issue 1 Y
Company A Product 2 Issue 1 Y
Company A Product 2 Issue 2 Y
Company A Product 2 Issue 3 Y
Company B Product 3 Issue 1 N
Company C Product 4 Issue 1 Y
 
I want to group by the column 'Name' and 'Description', while showing both data in the gallery and filtering those Action with 'Y' only.
 
Company A Product 1
Company A Product 2
Company C Product 4
 
 
Anyone has any idea?
 
Really appreciate any help
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at
    It should be something like this
    GroupBy(
       AddColumns(
          Filter(
             DataSource,
             'Action Y/N'.Value = "Y"
          ),
          NameVal,
          Name.Value
       ),
       NameVal,
       Description,
       Grouped
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
     

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