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 / How To Create Multiple...
Power Apps
Unanswered

How To Create Multiple Filters Working At The Same Time

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi!

I have a SharePoint List ("Reactive Support Escalation") with the following columns:

- Title

- Entity (Single Line Text Field)

- Status (Single Line Text Field)

 

I have set up a Gallery for this SharePoint List in PowerApps.

 

I have 3 PowerApps Field for filtering:

- StatusSearch (Dropdown box with 3 options: Select, Ongoing, Completed. This field is to filter on the "Status" SharePoint column)

- Entity (Text Input. This field is to filter on the "Entity" SharePoint column)

- SearchTicket (Text Input. This field is to filter on the "Title" SharePoint column)

 

I want to be able to filter the gallery using one or more (or all) of the filters.

 

For example -  Below is my full list in the Gallery:

 

Ticket (Title)EntityStatus
123UKOngoing
124FranceOngoing
125UKCompleted
130UKOngoing

 

If I was to filter on just one Filter (SearchTicket) then the Gallery would show:

Filter: Entity = UK

 

Ticket (Title)EntityStatus
123UKOngoing
125UKCompleted
130UKOngoing

 

If I then filter further by Status, I should see the below

Filter: StatusSearch Select Value = Ongoing

 

Ticket (Title)EntityStatus
123UKOngoing
130UKOngoing

 

If I then filter even further by Ticket (Title), I should see the below

Filter: SearchTicket = 123

 

Ticket (Title)EntityStatus
123UKOngoing

 

I have tried a few times to get this working but have failed. What should my Gallery Items Property be?

Categories:
  • Akser Profile Picture
    1,546 Moderator on at

    Hi @s_tanswell84,

    Let me know if this is what you are looking for:

    Filter(
    	DataSource,
    	IsBlank(StatusSearch.Selected.Value) Or StatusSearch.Selected.Value = Status,
    	IsBlank(Entity.Text) Or StartsWith(Entity, Entity.Text),
    	IsBlank(SearchTicket.Text) Or StartsWith(Title, SearchTicket.Text)
    )
  • s_tanswell84 Profile Picture
    Microsoft Employee on at

    Thanks @Akser - This is great! But is it possible to make a couple of tweaks?

     

    1. When all the filters are blank, the gallery is blank. How can we do the above but show all Gallery Items when the filters are blank?
    2. The text input filters work when I put the exact ticket number in. How can we use the above code but allow the filters to search on a more "contains" level. For example, if put just "12" in to the Ticket Search input field, it shows all the tickets containing "12"
    Ticket (Title)EntityStatus
    123UKOngoing
    124FranceOngoing
    125UKCompleted
  • Akser Profile Picture
    1,546 Moderator on at

    Hi @s_tanswell84,

    1. The gallery should show all the records when the filters are blank (which is why I have these 'IsBlank' conditions there). Let's try another approach with the use of 'Len'.
    2. Be aware that 'Contains' will give you a delegation warning since your data source is SharePoint. 
    Filter(
    	DataSource,
    	Len(StatusSearch.Selected.Value) = 0 Or StatusSearch.Selected.Value = Status,
    	IsBlank(Entity.Text) Or Entity.Text in Entity,
    	IsBlank(SearchTicket.Text) Or SearchTicket.Text in Title
    )

     

  • s_tanswell84 Profile Picture
    Microsoft Employee on at

    Thanks @Akser ! Unfortunately that comes up with an error of "The function Filter has some invalid arguments" and on the OR and the SharePoint Column Names it says "Invalid Argument Type"

  • Akser Profile Picture
    1,546 Moderator on at

    Hi @s_tanswell84,

     

    Could you do me a favor and rename your Text Input field Entity to SearchEntity (and update the previously shared formula accordingly)?

     

    Confirmation that it works without an error:

    Akser_0-1706184693537.png

    Akser_1-1706184731598.png

     

     

  • s_tanswell84 Profile Picture
    Microsoft Employee on at

    Hi @Akser - this is what it looks like. There is still an error:

     

    s_tanswell84_0-1706192858861.png

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard