web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter gallery based o...
Power Apps
Answered

Filter gallery based on a Choice field with ComboBox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?  

 

 

Categories:
  • MrNappa Profile Picture
    241 on at

    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 )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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? 

     

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard