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 / Conditional Filter for...
Power Apps
Answered

Conditional Filter for Gallery based on drop down responses

(0) ShareShare
ReportReport
Posted on by 214

Hello, 

 

I have a SharePoint list containing products available for each of these test branches as follows:

[Status], [Branch], [Biz_Pers],[Product_Type],[Product], [URL]

 

I want the gallery to filter based on the user's selections of each consecutive drop down, but right now its blank, I feel my formula is right (attached below)

 

any help would be appreciated

 

mcnemare1_0-1672345460584.png

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @mcnemare1 , 

    Try this structure and see if it works for you. Also please remember to post your code in Text - the below is OCR'd so watch spelling

    Filter(
     'PURL_LINKS_BETA-fbccd597-30be-4015-a0cl-53a998f29b39', 
     (
     Len(BusinessOrPersonalDropDown.Selected.Value) = 0 || 
     Biz_Pers.Value = BusinessOrPersonalDropDown.Selected.Value
     ) &&
     (
     Len(BranchDropDown.Selected.Value) = 0 || 
     Branch.Value = BranchDropDown.Selected.Value
     ) &&
     (
     Len(ProductTypeDropdown.Selected.Value) = 0 || 
     Product_Type.Value = ProductTypeDropdown.Selected.Value
     ) &&
     (
     Len(ProductDropdown.Selected.Value) = 0 || 
     Product.Value = ProductDropdown.Selected.Value
     )
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @mcnemare1,

     

    The last dropdown you are checking 'Product Dropdown', you have swapped the Or with a comma.

    Could you try ProductDropdown.Selected.Value = Blank() Or Product.Value = ProductDropdown.Selected.Value

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • mcnemare1 Profile Picture
    214 on at

    Thank you Both Solutions work!

  • mcnemare1 Profile Picture
    214 on at

    Thank you both Solutions Work!

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
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard