cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndiNoya
Frequent Visitor

Filter Gallery from multiple checkbox

Hi All,
how to filter gallery based on multiple checked checkbox?
cap2.PNG
    1.  if I check test1, then ABC, GHI will appear in the gallery
    2. if I check test1 and test2, then only GHI will appear in the gallery
    3.  if I check test2 and test3 , then gallery will be empty.

Any help is appreciated. Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

I followed the 3 criteria and tested it with:

If(test1Checkbox.Value && test2Ccheckbox.Value,
Filter(ProductsNew,test1="true",test2="true"),
If(test1Checkbox.Value,
Filter(ProductsNew,test1="true"),
If(test3Checkbox.Value && test2Ccheckbox.Value,
Filter(ProductsNew,test3="",test2=""))))
 
Please the datasource ProductsNew and the actual name of the checkbox
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
 

View solution in original post

7 REPLIES 7
eka24
Super User
Super User

Try:

If(test1Checkbox.Value,
Filter(Datasource,Name in ["ABC","GHI"]),
If(test2Ccheckbox.Value,
Filter(Datasource,Name="GHI")))
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
AndiNoya
Frequent Visitor

hi @eka24 
I Think that formula cannot be used in my case, because it is a static filter.
the case is if test1 and test2 checkbox is checked then only  GHI will appear in gallery because GHI is true in the first (test1) and second column(test2)

Can you look at the logic for the 3.

if I check test2 and test3 , then gallery will be empty.

Why should it be empty because i can see true.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

AndiNoya
Frequent Visitor

Hi @eka24 
because there is no data in test2 and test3 that are equal to true. its like AND operator

I followed the 3 criteria and tested it with:

If(test1Checkbox.Value && test2Ccheckbox.Value,
Filter(ProductsNew,test1="true",test2="true"),
If(test1Checkbox.Value,
Filter(ProductsNew,test1="true"),
If(test3Checkbox.Value && test2Ccheckbox.Value,
Filter(ProductsNew,test3="",test2=""))))
 
Please the datasource ProductsNew and the actual name of the checkbox
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
 

View solution in original post

Is your issue resolved

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

JHS2020
Resolver II
Resolver II

Is it possible to add a search function combined with the filters?

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,659)