cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CameronTCD
Helper II
Helper II

Filtering a Gallery by Combo box

Hello, 

 

I've browsed many many forums looking for a solution but I'm yet to find one.

I look to filter a gallery using the results from a combo box.

 

I'm having two issues however. 

 

  1. I'm searching a SharePoint list column based on 'Office'. 

    This means that I have multiple iterations of the same value, I would like to filter this by unique values.

  2. I can't seem to actually find the correct code to filter the gallery using the combo box.

 

Help would be much appreciated.

 

Regards,

CameronTCD

21 REPLIES 21

Good morning @mdevaney,

 

If(
    IsBlank(ComboBox2.Selected.Value),
    Filter('Apprentice List',StartsWith('Full name',TextInput1.Text)),
    Filter('Apprentice List','Base Office' in ComboBox2.SelectedItems,StartsWith('Full name',TextInput1.Text)))

Please see the compelted code above. 

Your solution has worked.

 

Thanks a million for your help.

 

Regards,

CameronTCD

@CameronTCD 

Victory!  Best of luck in building your app. Cat Happy

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,308)