cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Iantaylor2050
Helper IV
Helper IV

Filter gallery doesn't work with multi select checkbox

I have 2 galleries in my powerapp.

Items property of the Gallery4 which act as a filter refiners is populated using formula as per the screenshot below

Scr1.pngScr2.png

 

Screen3.png

 

Search result Gallery3_1 is using below formula

 

Screen4.png

 

Whenever I use filters with checkboxes selected, the search results shows fine without any issues. However once I start unchecking the checkbox, search results doesn't gets refreshed and it doesn't display properly. Any idea where i am going wrong ?

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @Iantaylor2050 ,

 

Use Checkbox value across Galleries is not a good idea, because the value will always be bound to the first action on the Controls all over the Gallery. 

check.gif

 

Better approaches I can find is to use CountIf function to get the number of checked items, or use CountRows function to get the number of collection items:

vjefferni_0-1651830349546.png

CountIf(Gallery4.AllItems,Checkbox3.Value = true) > 0

OR:

vjefferni_1-1651830436862.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
Iantaylor2050
Helper IV
Helper IV

Any input on the below query would be helpful please

v-jefferni
Community Support
Community Support

Hi @Iantaylor2050 ,

 

Use Checkbox value across Galleries is not a good idea, because the value will always be bound to the first action on the Controls all over the Gallery. 

check.gif

 

Better approaches I can find is to use CountIf function to get the number of checked items, or use CountRows function to get the number of collection items:

vjefferni_0-1651830349546.png

CountIf(Gallery4.AllItems,Checkbox3.Value = true) > 0

OR:

vjefferni_1-1651830436862.png

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,085)