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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Multiple Filters in Ga...
Power Apps
Unanswered

Multiple Filters in Gallery

(0) ShareShare
ReportReport
Posted on by

I have a Gallery with a bunch of data from a SharePoint list. 

I also have a Search box and a Toggle to filter the information in that list. 


I have a command for the search box

 

Filter('List Name',StartsWith(Title,'Search Box'.Text)) 

 

 and a command for the toggle

 

If(Toggle.Value = true, Filter('List Name',Status.Value = "Pending"))

 

They work fine on their own, but I can't figure out how to have them work together? Any help 🙂 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Multiple Filters in Gallery

    @JSeymour

    With({_items: If(Toggle1.Value, Filter('List Name',Status.Value = "Pending"))}, 

      Filter(_items , StartsWith(Title,'Search Box'.Text)) 

     

  • JSeymour Profile Picture
    on at
    Re: Multiple Filters in Gallery

    That is amazing thank you. I probably didn't explain myself well enough so apologies. 

     

    I would like the List to remain unfiltered if both the toggle are not in use (so i set the toggle.value = "true") and the search box is still usable even if the toggle is not active. 

     

     

     

     

  • Verified answer
    JSeymour Profile Picture
    on at
    Re: Multiple Filters in Gallery

    Figured it out! 

     

    Search(If(Toggle.Value,Filter('List Name',Status.Value = "Pending"), 'List Name'), 'Search Box'.Text,"Title")

    Thank you @Drrickryp for the help, I have used your formula elsewhere in my app that solved a major problem! 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard