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

filter gallery with 2 comboboxes AND-OR text box

Hi, I'm attempting to filter a gallery based on selections in comboboxes or a text box.  I'll settle with filtering the gallery with only 1 selection in any of my filter options.  It would be great to do an AND / OR filter across all the options.  

 

Issue: The below formula is on my gallery.  I have 2 combobox dropdowns - each filtering on a specific value column (Review Elements and Subject Matter or Content Topics).  Additionally, I have a text box (Required Language) that will filter based on keywords.  The below formula is showing no errors, but only ComboBox2 (review elements) is working.  Where am I going wrong?

 

Filter([@'Standards, Disclaimers & Disclosures'],'Review Element(s)' in ComboBox2.SelectedItems.Result, Or('Subject Matter or Content Topic(s)' in ComboBox2_1.SelectedItems.Result, Or(TextInput1.Text in 'Required Language')))

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @enlitzinger ,

Assuming ComboBox2 is working, try this

Filter(
   [@'Standards, Disclaimers & Disclosures'],
   'Review Element(s)' in ComboBox2.SelectedItems.Result || 
   'Subject Matter in ComboBox2_1.SelectedItems.Result ||
   Content Topic(s)' in ComboBox2_1.SelectedItems.Result ||   
   TextInput1.Text in 'Required Language'
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @enlitzinger ,

Assuming ComboBox2 is working, try this

Filter(
   [@'Standards, Disclaimers & Disclosures'],
   'Review Element(s)' in ComboBox2.SelectedItems.Result || 
   'Subject Matter in ComboBox2_1.SelectedItems.Result ||
   Content Topic(s)' in ComboBox2_1.SelectedItems.Result ||   
   TextInput1.Text in 'Required Language'
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Krishna92
Microsoft
Microsoft

@enlitzinger 

 

Could you please try using the formula and check if that helps with resolution of the issue.

 

Filter([@'Standards, Disclaimers & Disclosures'], 'Review Element(s)' in ComboBox2.SelectedItems.Result Or('Subject Matter or Content Topic(s)' in ComboBox2_1.SelectedItems.Result Or(TextInput1.Text in 'Required Language')))

 

If this information helps you with resolution, please consider giving a thumbs up and mark the solution as resolved.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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