cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sansingh30
Level: Power Up

On Search screen Gallery Adding Multiple Filters

Hi, We got stuck on one situtation where on Dashboard page we have 3 gallerys, My first gallery data is based on 2nd and 3rd gallery selection.

My 1st Gallery also having a search field where we are filtering Items based on Column name.

We need to selected rows on other 2 galleries.

My first gallery will display only those items which match the selected criteria from the 2nd and 3rd galleries.

 

Can you please help me out, how to write 2 filter conditions inside my Search formula?

2 REPLIES 2
Community Support Team
Community Support Team

Re: On Search screen Gallery Adding Multiple Filters

Hi @sansingh30 ,

Could you tell me the filter condition of gallery2 and gallery3?

Do you want to display items that meet the condition of gallery2 and gallery3 in gallery1?

I suggest you use Filter function or Search function. You could choose one according to your demands.

1)Filter(tablename,formula1,formula2)            filter items that meet formula1 and formula2

2)Filter(tablename,formula1||formula2)            filter items that meet formula1 or formula2

3)Search(tablename,searchstring,column1,column2)   filter items that column1 or column2 have searchstring

Or you could also save items in gallery2 and gallery3 in one collection, and display this collection in gallery1.

ClearCollect(test,gallery2.AllItems,gallery3.AllItems)

Set the gallery1's Items: test

Here's a doc about filter function for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
sansingh
Level: Powered On

Re: On Search screen Gallery Adding Multiple Filters

Hi Thanks for reply, now the current situtation is we have to compare multiple values from one collection to one column of an entity.


@v-yutliu-msft wrote:

Hi @sansingh30 ,

Could you tell me the filter condition of gallery2 and gallery3?

Do you want to display items that meet the condition of gallery2 and gallery3 in gallery1?

I suggest you use Filter function or Search function. You could choose one according to your demands.

1)Filter(tablename,formula1,formula2)            filter items that meet formula1 and formula2

2)Filter(tablename,formula1||formula2)            filter items that meet formula1 or formula2

3)Search(tablename,searchstring,column1,column2)   filter items that column1 or column2 have searchstring

Or you could also save items in gallery2 and gallery3 in one collection, and display this collection in gallery1.

ClearCollect(test,gallery2.AllItems,gallery3.AllItems)

Set the gallery1's Items: test

Here's a doc about filter function for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

 

 

Best regards,

Community Support Team _ Phoebe Liu


 

Can you please advise how we can achive this.

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,062)