web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter gallery from dr...
Power Apps
Answered

Filter gallery from dropdown only if toggle true

(0) ShareShare
ReportReport
Posted on by 12

I have been trying to solve this for a few hours but my knowledge is not enough to crack this.

 

I have a sharepoint list and display it in a Gallery. 

 

I have a Search box, 2 slider and 3 drop downs to filter the Gallery. So far this works fine and as desired.

Filter('Inlay Selector',

DropdownVendor.Selected.Value = Vendor.Value,

DropdownIC.Selected.Value = 'IC Vendor'.Value,

DropdownICFamily.Selected.Value = 'IC Family'.Value,

Slider1.Value >= 'Antenna Width mm',

Slider1_1.Value >= 'Antenna Height mm',

SearchBox.Text in 'Vendor Product Code' Or SearchBox.Text in 'Antenna Width mm')

 

Now I would like to use 3 toggle, so certain filter criteria won't be applied; my intention is to allow the user to disable each of the Dropdowns, so results are not filtered.

 

Filter('Inlay Selector',

If(Toggle2.Value,DropdownVendor.Selected.Value = Vendor.Value),

If(Toggle2_2.Value,DropdownIC.Selected.Value = 'IC Vendor'.Value),

If(Toggle2_1.Value,DropdownICFamily.Selected.Value = 'IC Family'.Value),

Slider1.Value >= 'Antenna Width mm',

Slider1_1.Value >= 'Antenna Height mm',

SearchBox.Text in 'Vendor Product Code' Or SearchBox.Text in 'Antenna Width mm')

 

Is there a good way to do this? What I created doesn't work. If I toggle any of the three toggles off, the gallery is empty.

Categories:
I have the same question (0)
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    So do you want to apply the filter if the toggles are true or if the are false?

     

    You can do it without if’s by using or. This should work:

     

    Filter('Inlay Selector',

    !Toggle2.Value||DropdownVendor.Selected.Value = Vendor.Value,

    !Toggle2_2.Value||DropdownIC.Selected.Value = 'IC Vendor'.Value,

    !Toggle2_1.Value||DropdownICFamily.Selected.Value = 'IC Family'.Value,

    Slider1.Value >= 'Antenna Width mm',

    Slider1_1.Value >= 'Antenna Height mm',

    SearchBox.Text in 'Vendor Product Code' Or SearchBox.Text in 'Antenna Width mm')

  • goetz Profile Picture
    12 on at

    Genius!!! Thank you so much for your help. You made it look so easy...

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 279 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 229 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard