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 / Gallery filter with Di...
Power Apps
Unanswered

Gallery filter with Distinct

(0) ShareShare
ReportReport
Posted on by

I know how to do filters in a gallery fairly well.

 

a coworker of mine did a distinct formula for me that listed all of the dates from a sharepoint list and removed the duplicates

SortByColumns(Distinct('Rack Audits',Date),"Value",SortOrder.Descending)

 

How do i change this formula to add a filter from a dropdown menu named dropdown1_2 because i only want to see the distinct dates from the dropdown menu that is selected.

 

thanks 

 

 

Categories:
I have the same question (0)
  • madlad Profile Picture
    2,637 Moderator on at

    I think you could add the filter inside the distinct, something like this:

     

    SortByColumns(
     Distinct(
     Filter(
     'Rack Audits', 
     dropdown1_2.Selected.*FieldIfNeeded* = *AppropriateField*
     ),
     Date
     ),
     "Value",
     SortOrder.Descending
    )

     

    Just make sure to swap in the appropriate column to filter by, and the appropriate field of the dropdown's data if it's needed.

     

    Hope this helps!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard