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 / Multiple Filters in Ga...
Power Apps
Answered

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:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JSeymour

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

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

    ) 

     

  • JSeymour Profile Picture
    on at

    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

    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

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard