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 / 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:
I have the same question (0)
  • 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

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