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

Notifications

Announcements

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
    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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard