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 with dropdown
Power Apps
Unanswered

Filtering with dropdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have to filter my Gallery based on the drop down

this is how i filter but it works only if i use only when i use one Dropdown. 

How can I use both dropdown?

If (Dropdown2.Selected.Result = "All" And Dropdown1.Selected.Result = "ALL" ,Filter(AddColumns(Org,"helper_Org",If(Varselected in oals.Id ,"true")),helper_OrgNameLand),Filter(AddColumns(Org"helper_Org",If(Varselected in oals.Id ,"true")),helper_Org="true",'IDLand: LandName'.Value = Dropdown2.Selected.Result And kmOrg = Dropdown1.Selected.Result ))

Categories:
  • WarrenBelz Profile Picture
    156,740 Most Valuable Professional on at

    Hi @Anonymous ,

    I am not exactly sure on your logic here, but is this what you are trying to do?

    Filter(
     AddColumns(
     Org,
     "helper_Org",
     If(
     Varselected in oals.Id ,
     "true",
     helper_OrgNameLand
     )
     ),
     (
     Dropdown2.Selected.Result = "All" ||
     LandName'.Value = Dropdown2.Selected.Result
     ) &&
     (
     Dropdown1.Selected.Result = "ALL" ||
     kmOrg = Dropdown1.Selected.Result 
     )
    )

     

    Please click Accept as solution 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 Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank u @WarrenBelz but it is not showing All results 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    this is filtering: If (Dropdown2.Selected.Result = "All"  ,Filter(AddColumns(Org,"helper_Org",If(Varselected in oals.Id ,"true")),helper_OrgNameLand),Filter(AddColumns(Org"helper_Org",If(Varselected in oals.Id ,"true")),helper_Org="true",'IDLand: LandName'.Value = ))

     

    And this is also working If ( Dropdown1.Selected.Result = "ALL" ,Filter(AddColumns(Org,"helper_Org",If(Varselected in oals.Id ,"true")),helper_OrgNameLand),Filter(AddColumns(Org"helper_Org",If(Varselected in oals.Id ,"true")),helper_Org="true", kmOrg = Dropdown1.Selected.Result ))

     

    how can i use both dropdowns together?

  • WarrenBelz Profile Picture
    156,740 Most Valuable Professional on at

    @Anonymous ,

    What results are you expecting that are not being shown ? The item I am confused on is helper_OrgNameLand and how that fits in the first filter as it is in the filter, but is not compared with anything.

    Filter(
     AddColumns(
     Org,
     "helper_Org",
     If(
     Varselected in oals.Id,
     "true"
     )
     ),
     helper_OrgNameLand && helper_Org="true" &&
     (
     Dropdown2.Selected.Result = "All" ||
     'IDLand: LandName'.Value = Dropdown2.Selected.Result
     ) &&
     (
     Dropdown1.Selected.Result = "ALL" ||
     kmOrg = Dropdown1.Selected.Result 
     )
    )

     

    Please click Accept as solution 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 Thumbs Up.

    Visit my blog Practical Power Apps

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard