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 / Filter a gallery by mu...
Power Apps
Unanswered

Filter a gallery by multiple 'And/Or' operators

(0) ShareShare
ReportReport
Posted on by

Hi everyone! I have working code for this scenario, but I was wondering if there is a more optimized way of doing this. I would like users to be able to filter a gallery by multiple dropdowns but also have the option to decide whether its filtering by "And" or "Or". See the screenshot below.

JDH1381_1-1702908258645.png

 

 

Is there a better way to set up this logic rather than setting the filter conditions for every possible combination of operators?

Example:

JDH1381_0-1702907966730.png

 

Thanks everyone!

 

 

Categories:
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @JDH1381 

     

    Copy pasting your code in here would make it easier for us to help 😉

     

    thanks

  • JDH1381 Profile Picture
    on at

    I included a screenshot of the code for the first two sets of conditions, the rest of the code follows the exact same format but just accounts for the different combinations of And/Or/And, And/Or/Or etc. (There are 6 possible combinations)

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard