cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trickytechie
Level: Powered On

Filter gallery with multiple checkboxes

I am new in powerapps and trying to implement some logic but not able to find better solution for this.

 

My problem is I have 8 different checkbox and one gallery control on my powerapp screen and I want to filter my gallery control according to checked check boxes.

 

e.g.  customer 1: abc

        customer 2: abc,pqrs

        customer 3: def, ghi

 

If I select only one checkbox (that means checkbox1.Text=abc) then gallery should have only abc records and if I select 2 checkboxes (checkbox1.Text=abc and checkbox2.Text=pqrs), then the gallery would have abc and pqrs data.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filter gallery with multiple checkboxes

Hi @trickytechie,

Do you want to filter your Gallery items based on multiple checkboxes?

The user @SamPhillips and @Ethan0079 have same issue with you, please check my response within the following threads:

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Filtering-Gallery-with-Multiple-Checkbo...

https://powerusers.microsoft.com/t5/Creating-Apps/select-multiple-item-by-checkbox-in-Database/m-p/1...

Currently, there is no simple way to achieve your needs in PowerApps currently, please take a try with the solution I provided within the above threads, then check if it help in your scenario.

 

Best regards,

Kris

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

10 REPLIES 10
Ethan0079
Level: Powered On

Re: Filter gallery with multiple checkboxes

Hello,

 

I have the same problem like you but me it's in a DataBase and I didn't understand why I went to the Microsoft doc but nothing about it I think it's just not possible to do it yet we can only put 1 single condition with 1 checkbox -_-

 

But if you want you can put a rule that tells you to put a column in invisible when your checkbox is activated

It's another solution 🙂

Community Support Team
Community Support Team

Re: Filter gallery with multiple checkboxes

Hi @trickytechie,

Do you want to filter your Gallery items based on multiple checkboxes?

The user @SamPhillips and @Ethan0079 have same issue with you, please check my response within the following threads:

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Filtering-Gallery-with-Multiple-Checkbo...

https://powerusers.microsoft.com/t5/Creating-Apps/select-multiple-item-by-checkbox-in-Database/m-p/1...

Currently, there is no simple way to achieve your needs in PowerApps currently, please take a try with the solution I provided within the above threads, then check if it help in your scenario.

 

Best regards,

Kris

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

SamPhillips
Level 8

Re: Filter gallery with multiple checkboxes

I had to tackle this exact problem numerous times now. 

 

You have two options really... either use the Switch function to switch between the appropriate filters dependant on what checkboxes are selected.

I detailed that method at the top of here:

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/Filtering-Gallery-with-Multiple-Checkbo...

 

Or

 

Stack filters one after another by using the onchange property on each of your checkboxes, every time one is clicked it filters a collection futher. (The problem with this is you need a reset button as you cannot deselect checkboxes to change the filter) 

This method is detailed at the end of the same post above.

 

trickytechie
Level: Powered On

Re: Filter gallery with multiple checkboxes

Hi @SamPhillips@v-xida-msft 

 

Thanks for your support. your solution is good but not enough for my condition. I have 10 checkboxes on screen and it's difficult to write if-else condition for 10 checkboxes with the selection for two or more checkbox at a time.

 

Sorry @SamPhillips, in my case there is no space of reset button but Thanks for your advice. I will implement it later in any other application.

 

 

 

Ethan0079
Level: Powered On

Re: Filter gallery with multiple checkboxes

Hi, @trickytechie @v-xida-msft

I understood your problem well I have exactly the same one as you but I would also like that there are several activated at the same time and that the checkboxes flitre several ms table at the same time

trickytechie
Level: Powered On

Re: Filter gallery with multiple checkboxes

Hi @Ethan0079,

 

Can you explain more about it?

Ethan0079
Level: Powered On

Re: Filter gallery with multiple checkboxes

Look at my post if you can understand: D if you didn't understand it, tell me again

 

https://powerusers.microsoft.com/t5/Creating-Apps/select-multiple-item-by-checkbox-in-Database/m-p/1...


@trickytechie wrote:

Hi @Ethan0079,

 

Can you explain more about it?


 

Highlighted
Raj_Saha
Level: Powered On

Re: Filter gallery with multiple checkboxes

dont have acess 

RachelRig
Level: Powered On

Re: Filter gallery with multiple checkboxes

Why is **Access Denied** on these articles that outline a solution? How can I get to this information?

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,044)