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

Filter Gallery Using Multiple ComboBox Choices & Title together

I currently have a Sharepoint list with a multiple choice column named 'tags'.

 

I can filter the gallery with the tags using a combo box, but I want to also include the title so if a user types 'name of' & clicks choice 2 - the first and second item in the list would appear.

 

Screenshot 2022-11-21 at 11.16.38.png

Here are my current formulas

Combo Box: 

 

Distinct(
    Ungroup(
        ForAll(
            FrankCompass,
            {Item: Tags}
        ),
        "Item"
    ),
    Value
)

 

 

Gallery:

 

Filter(FrankCompass, CountRows(Filter(Tags,Value in ComboBox1.SelectedItems)) > 0)

 


Thanks in advance

3 REPLIES 3
Drrickryp
Super User
Super User

@frankCTL 

Wouldn't it be easier for the user if you have two comboboxes, one for Title and one for Tags.  

Filter(
  FrankCompass, Len(ComboBox1.SelectedItems)=0 || Tags.Value in ComboBox1.SelectedItems,
                Len(ComboBox2.Selected.Title)=0|| Title = ComboBox2.Selected.Title
)

Selecting a title from a combobox is easier for a user than guessing what the text might be.  With the above formula, if neither combobox has a selection, then then all the values in FrankCompass will be shown in the gallery.

 

frankCTL
New Member

@Drrickryp - thanks for the suggestion. 

 

I won't be able to use comboboxes for titles as there are hundreds 😞

 

It seems far too difficult to filter by multiple checkboxes 

Drrickryp
Super User
Super User

@frankCTL

True but you can search with a combobox. 

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,708)