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 for g...
Power Apps
Answered

Multiple filters for gallery items (including search and sort)

(1) ShareShare
ReportReport
Posted on by 11

I am fairly new to powerapps and am trying to figure out how to filter gallery items based on a value while leaving the search feature intact.

 

Here is my initial gallery.items syntax: SortByColumns(Filter('Shakopee Hot Board', StartsWith(Supplier, TextSearchBox1.Text)), "Supplier", If(SortDescending1, Descending, Ascending))

 

I would like to leave that as is, but want to add a filter to show items when a particular yes/no column in equal to no. Any ideas on how to do this would be great.

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    The Filter function can take multiple conditions, so for that case you can add another condition in the filter:

    SortByColumns(
     Filter(
     'Shakopee Hot Board',
     StartsWith(Supplier, TextSearchBox1.Text),
     YesNoColumnName = false),
     "Supplier",
     If(SortDescending1, Descending, Ascending))

    You can also compose the filter function with other functions that operate on tables, such as Search. You can use the result of a filter as the input of a search, and vice-versa. For example, if you wanted to add a search in this operation, you could use something along the lines of

    SortByColumns(
     Filter(
     Search(
     'Shakopee Hot Board',
     TextSearchBox2.Text,
     "Name", "Description"),
     StartsWith(Supplier, TextSearchBox1.Text),
     YesNoColumnName = false),
     "Supplier",
     If(SortDescending1, Descending, Ascending))
  • kbwissi Profile Picture
    11 on at

    This worked great, thank you! In one screen of my form, I need to actually filter by two yes/no columns. When I try to add this, no items are being returned.

     

    SortByColumns(Filter('Shakopee Hot Board', StartsWith(Supplier, TextSearchBox1_2.Text), Universal_x0020_Completed = false, Universal_x0020_Acknowledged = true), "Supplier", If(SortDescending1, Descending, Ascending))

     

    Universal_x0020_Completed and Universal_x0020_Acknowledged are my yes/no columns. If I have just one of them in the filter, it works fine.

     

    Thanks!

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,009

#2
11manish Profile Picture

11manish 672

#3
Valantis Profile Picture

Valantis 628

Last 30 days Overall leaderboard