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

Filter gallery based on a Choice field with ComboBox

I have a gallery where I want to display specific information from a Choice field. This filter works great: 

Filter(Datasource,ChoiceFieldName.Value = "NGO")

 

However, I would like the user to have a dropdrop down where they select the value to filter on, i.e. "NGO", "Company", "etc. Is this possible?  

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Filter gallery based on a Choice field with ComboBox

Hi @ttaylor 

 

Can you try out the below expressions:
 
Dropdown1 -> Items -> ["NGO", "Company"]
 
Gallery -> Items -> Filter(Datasource,ChoiceFieldName.Value = Dropdown1.Selected.Value)
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
3 REPLIES 3
MrNappa
Level: Powered On

Re: Filter gallery based on a Choice field with ComboBox

Simply add a dropdown to your screen, populate it with the desired items (e.g. [ "NGO", "Company" ] ), then change the Filter to Filter(Datasource,ChoiceFieldName.Value = Dropdown1.Value )

 

ttaylor
Level: Powered On

Re: Filter gallery based on a Choice field with ComboBox

That's what I originally had and it didn't work.

 

Filter(Datasource,ChoiceFieldName.Value = Dropdown1.Value)

 

Is it because the field value I want is a Choice column type in my Share point list? 

 

Super User
Super User

Re: Filter gallery based on a Choice field with ComboBox

Hi @ttaylor 

 

Can you try out the below expressions:
 
Dropdown1 -> Items -> ["NGO", "Company"]
 
Gallery -> Items -> Filter(Datasource,ChoiceFieldName.Value = Dropdown1.Selected.Value)
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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

Top Kudoed Authors
Users Online
Currently online: 142 members 3,630 guests
Please welcome our newest community members: