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

Filtering a Gallery using another Gallery with comboboxes

Hello Community,

 

i'm struggling to find a solution for my PowerApp. I have a Combobox where i can add filteroptions to a Gallery1. In Gallery1 i have a Combobox where the items are defined by the value of the selected item:

If(ThisItem.Value="REQ-ID",Distinct(AllReqs,Title),
ThisItem.Value="Turnover (Global)",Distinct(AllReqs,bla2),
ThisItem.Value="Market Potential",Distinct(AllReqs,bla3),...

And i want to use Gallery1 to filter the records by their column in Gallery2. But i'm not sure how i can compare the diferent values given by the different comboboxes which are represented by one combobox in Gallery1.

 

Any ideas how to set this up?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filtering a Gallery using another Gallery with comboboxes

Hi @domates ,

Do you want to use different items' combo boxes' value outside the gallery?

I'm afraid it's not supported to make it.

 

I've made a test:

1)insert a combo box inside the gallery1, select different value in different items

2)insert a label inside gallery2, set the label's Text:  Concat(ComboBox1.SelectedItems,Title&"")

3) the lable will  display the same value in different items8191.PNG

 

 

Since the differences of the combo boxes inside the gallery are represented by the "ThisItem" property, this property is an input property.

So, you could only distinguish these combo boxes' value inside the gallery.

If you use the combo boxes' value outside the gallery, different items' combo boxes will be seen as the same one.

 

 

 

Best regards,

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.
3 REPLIES 3
RezaDorrani
Level 10

Re: Filtering a Gallery using another Gallery with comboboxes

Hi @domates 

 

When you filter a datasource, you have to add the columnname in the filter function

You cannot dynamically define the column name

 

So if you are trying to have the users dynamically define the column name then it will not work

 

the column values can be defined as dropdowns which users can pick from and then your gallery can filter based on the values in those dropdowns

 

Regards,

Reza Dorrani

 

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

Community Support Team
Community Support Team

Re: Filtering a Gallery using another Gallery with comboboxes

Hi @domates ,

Do you want to use different items' combo boxes' value outside the gallery?

I'm afraid it's not supported to make it.

 

I've made a test:

1)insert a combo box inside the gallery1, select different value in different items

2)insert a label inside gallery2, set the label's Text:  Concat(ComboBox1.SelectedItems,Title&"")

3) the lable will  display the same value in different items8191.PNG

 

 

Since the differences of the combo boxes inside the gallery are represented by the "ThisItem" property, this property is an input property.

So, you could only distinguish these combo boxes' value inside the gallery.

If you use the combo boxes' value outside the gallery, different items' combo boxes will be seen as the same one.

 

 

 

Best regards,

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.
Highlighted
domates
Level: Powered On

Re: Filtering a Gallery using another Gallery with comboboxes

Well, that was what i was afraid of. But thank you for helping me out.

 

Edit: I will then use a workaround where i use different comboboxes for each Filteroption, that should work.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 63 members 4,935 guests
Please welcome our newest community members: