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 / filtering gallery base...
Power Apps
Answered

filtering gallery based on multiple dropdowns

(0) ShareShare
ReportReport
Posted on by 834

Hello, 

I am trying to filter gallery based on multiple dropdowns... here the example on how I do with 2 dropdowns... now i have to do this with 3 and i hope that there is a better way to do this.... 😕

(gallery shows items from some list, the dropdowns should filter this list and represent the columns in that list)

 

//if category is selected
If(Not(IsBlank(category.Selected.Result)) And IsBlank(layout.Selected.Result),Filter('IT Hardware Web Shop - Products', Category.Value = category.Selected.Result And Availability.Value = "Available"),
//if layout is selected
If(Not(IsBlank(layout.Selected.Result)) And IsBlank(category.Selected.Result),Filter('IT Hardware Web Shop - Products', LayoutLanguage.Value = layout.Selected.Result And Availability.Value = "Available"),
//if both selected
If(Not(IsBlank(layout.Selected.Result)) And Not(IsBlank(category.Selected.Result)),Filter('IT Hardware Web Shop - Products', Category.Value = category.Selected.Result And (LayoutLanguage.Value = layout.Selected.Result Or LayoutLanguage.Value = Blank()) And Availability.Value = "Available"),
//if non selected
Filter('IT Hardware Web Shop - Products', Availability.Value = "Available"))))

 

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

    Hi @Sifu 

    Will this work as the Items property for your gallery?  I added ASR for a third dropdown and since all of the filters included "Available", I created a temporary variable as a filtered table.

    With(
     {
     CSR:category.Selected.Result,
     LSR:layout.Selected.Result, 
     ASR: AnotherDropdown.Selected.Result,
     AVProducts:Filter('IT Hardware Web Shop - Products', Availability.Value="Available"
     )
     },
     
     Filter(
     AVProducts,
     CSR=Blank() Or CSR,
     LSR=Blank() Or LSR,
     ASR=Blank() Or ASR
     
     )
    )

     

  • Sifu Profile Picture
    834 on at

    cant get this working can we maybe simplify this to two dropdowns just so i understand the concept...

     

    With(
     {
     CSR:category.Selected.Result,
     LSR:layout.Selected.Result
     )
     },
     
     Filter(
     AVProducts,
     CSR=Blank() Or CSR,
     LSR=Blank() Or LSR,
     )
    )
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Sifu 

    Check out this blog about how to do this correctly and why you may have run into a problem.

    https://matthewdevaney.com/power-apps-filter-gallery-with-multiple-dropdowns/ 

  • Sifu Profile Picture
    834 on at

    thanks, will do

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 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard