Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter Gallery using multiple condition



I am trying to filter a gallery using 2 condition, first condition is based on ticket assignment and the second condition is based on ticket status. Currently, I am using the filter based on 2nd condition (it's working fine) however I cannot figure out the correct formula to concatenante both condition.


Hoping someone can help me out.


Thanks in advance. 


Accepted Solutions

Hi @Anonymous,


The "Duplicate names" means that there are duplicate names within the Table1 data source. 


On your side, you should type the following formula within the Items property of the Gallery control:


), UserAccess=UserDisplayName, BR_Stat.Value=StatusValue )

More details about AddColumns function, please check the following article:



Best regards,



Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Super User
Super User

Hi @Anonymous


Make sure that both work when used individually, to make sure that the data and formual is 100%. Once you can confirm that both work, you should be able to combine them into one Filter command. You don't have to concatenate the conditions, you can simply specify both as filters




If you don't come right, please share the formula you are using to see if I can help.


Hi @Anonymousyou'll want to seperate your two conditions with either an && (and condition) or || (or condition) like below:


Filter('Culture Shoutouts',Culture_x0020_Category="Deliver Gifts"||Culture_x0020_Category="Deliver Wow")



Not applicable

Hi @DavesTechTips and @BrianKnight, the conditions are from different Sharepoint List.


Condition 1:

Filter(Project, Assigned_To=User().DisplayName)

Condition 2:



I am looking on how I can filter the gallery using both conditions.


Thanks in advance.

Hi @Anonymous,


Thank you  for the info.


a) What are you planning to display in the gallery, tickets or projects, or both?

b) Are you busy building a task list to show all items that are currently assigned to a specific person?

c) Do these lists share similar columns? 

d) How much data do you expect from both of these lists's filter results?


Based on many assumptions, it might make sense to Collect the results from these filterred lists into a collection, and then display the collection into a gallery.

Not applicable

Hi @DavesTechTips,


a) What are you planning to display in the gallery, tickets or projects, or both?

    * the gallery should diplay the tickets (please note that for every project there will be multiple tickets).


b) Are you busy building a task list to show all items that are currently assigned to a specific person?

     * Yes, gallery should show all the items currently assigned to a specific person but it should be filetered by status.


c) Do these lists share similar columns? 

     *  Yes, They have similar colums like Project Title and Project ID


d) How much data do you expect from both of these lists's filter results?

     * what we are is expecting might be below 50 tickets per project.


Really appreciate the help. 🙂

Hi @Anonymous, it feels like the optimal way to display this would be nested galeries. The left one could show a list of projects (or it could be a drop-down box if you'd prefer).  Since ProjectID is shared between the Project and Ticket lists, you can concatenate the search criteria. 


This video will show you how to nest the galleries: Nesting PowerApps Galleries using a very similar example to you with Projects to timecards and should get you close. Here's what the code might look like since you have a shared ProjectID:


//Change User().DisplayName to a variable called varUserDisplayName to remove delegation warnings. You can do this onVisible or onStart.

Filter(Ticket, ProjectID=galProjectBrowse.selected.ProjectID&&Status.Value=DropDownStatus.Selected.Value)

//I'm assuming StatusValue is a drop-down selector to show Active or Dead projects

I'm making huge assumptions in that code. Mainly, that you have a previous gallery called galProjectBrowse to show a list of projects. In that gallery, you can apply your filter to only show projects you have rights to with your Filter(Project, Assigned_To=User().DisplayName) code. Then, you can see a list of tickets for that given project by status next. 






Not applicable

Hi @BrianKnight,


The picture below is similar with the one I'm currently working with. Once the User select a "Status" it will  filter the gallery, however I need to filter it also with "Assigned to". The Items showing in the gallery is SP List for Tickets while the "Assigned to" is maintained in SP for Projects.  



OK that's helpful! I would put the top items into a gallery of their own with a GroupBy clause to keep that part simple. 




I just tested this and it will meet your needs. The only challenge is it will cause delegation warnings, limiting you to no more than 2k rows (after you change the default property) because there's a lookup inside a Filter. That's why your best bet might be to narrow down the project list as part of  an onVisible or OnStart. Or have a gallery of projects as I mentioned above to pre-filter things down a bit. If you do that, you'll be golden. 


Hope that helps. 


Not applicable

Hi @BrianKnight,


It's working now, however the gallery doesnt show the exact count of ticket for a particular status. 

Filter('Ticket', ProID=LookUp(Project, UserAccess=UserDisplayName, ProjectID_T5)&&BR_Stat.Value=StatusValue)



Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (4,114)