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 / How to apply a All fil...
Power Apps
Answered

How to apply a All filter with many dropdowns

(0) ShareShare
ReportReport
Posted on by 12

Hi,

I am currently trying to add "all" too many different drop-downs on my gallery's. Currently, I have multiple galleries, each linked to the other via a collection. Here is a examplel formula with 2 of my drop downs

Filter(Tsp,(Certsdd.Selected.Result= "All" And Rankdd.Selected.Result= "All") Or ('What is your current rank'=Rankdd.Selected.Result And Certsdd.Selected.Result= "All" ) Or ('certifications?' = Certsdd.Selected.Result And Rankdd.Selected.Result= "All") Or ('What is your current rank'=Rankdd.Selected.Result And 'certifications?' = Certsdd.Selected.Result))

 

This works as designed, the current issue is some pages that are linked to gallerys have more than two drop downs. Some have up to 10 drop downs for filters. Is there a way to stream line this filtering process. As it stands now I would need to write 49 lines of code for a page that has 7 drop downs to account for every combination. This is a very tedious process, do you have any process improvements or is there any way to loop through these drop downs? Below is a picture of my dropdown / app.

Power app help.PNG
Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Heya,

     

    Yes, you can simplify it in that you only want to filter in each case when something is selected, so add the 'all' as the alternate option as below here:

     

     

    Filter(
     Tsp,
     // Either rank is all, or filter by rank
     (Rankdd.Selected.Result= "All" Or 'What is your current rank'=Rankdd.Selected.Result)
     ,
     // Either certs is all, or filter by cert
     (Certsdd.Selected.Result = "All" Or 'certifications?' = Certsdd.Selected.Result)
    )

     

     

     

    Cheers,

    Sancho

  • Verified answer
    Adam1986 Profile Picture
    139 on at

    Hi,

    in my opinion best practice is to filter gallery by approach described below. If any of your dropdowns will be empty it will be omitted.

     

    Filter(Tsp,
     ('What is your current rank' = Ranked.Selected.Result || IsBlank(Ranked.Selected.Result))
     && ('certifications?' = Certsdd.Selected.Result || IsBlank(Certsdd.Selected.Result)) && ...)

     

    WIth this approach you can filter your gallery by any number of dropdowns. Just allow dropdown to have blank selection (AllowEmptySelection = true).

     

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard