cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KalvisTe
New Member

Gallery Filter with multiple comboboxes that can select multiple values

Hi, 

I have a gallery with sharepoint list, and I filter it with searchbox, and 2 comboboxes. The issue I find is that if I select 2 options from combobox, it doesnt filter it by both of them, but shows only one result. How could I resolve this? I'd like it to show both of the selected option results, not only one. As you can see in the last screenshot if I have selected 2 values, it shows result with the latest selected value. Sharepoint column for that field is a choice field with single selection. 

 

Code : 

Filter(
Development,
StartsWith(
'Process name',
txtInput.Text
),
IsBlank(cmbLocation.SelectedItems) || IsEmpty(cmbLocation.SelectedItems) || Location.Value = cmbLocation.Selected.Value,
IsBlank(cmbSolutionType.SelectedItems) || IsEmpty(cmbSolutionType.SelectedItems) || 'Solution type'.Value = cmbSolutionType.Selected.Value,
IsBlank(cmbStatus.SelectedItems) || IsEmpty(cmbStatus.SelectedItems) || Status.Value = cmbStatus.Selected.Value
)

 

KalvisTe_0-1669880030611.png

KalvisTe_1-1669880044693.pngKalvisTe_2-1669880066582.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-liwei-msft
Community Support
Community Support

Hi @KalvisTe 

 

You could try this:

Filter(Development,Status in cmbStatus.SelectedItems)

 

Best Regards,

Levi

View solution in original post

3 REPLIES 3
v-liwei-msft
Community Support
Community Support

Hi @KalvisTe 

 

You could try this:

Filter(Development,Status in cmbStatus.SelectedItems)

 

Best Regards,

Levi

Thanks! It does give delegation error, but my list will not go over a few hundred rows. Any idea if there is workaround for the delegation stuff if using In function? 

v-liwei-msft
Community Support
Community Support

Hi @KalvisTe 

 

You can avoid delegation warnings by storing your data source in a collection and filtering the collection with the filter function.

 

Best Regards,

Levi

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,695)