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
Unanswered

Filter gallery based on selected dropdown (being an optionset)

(1) ShareShare
ReportReport
Posted on by 44

I'm using the status OptionSet (Active/Inactive) from an Common Data Service entity called "Damages".

 

The dropdown shows the valid status OptionSet combinations (by using the 'Choices' formula):

image.png

image.png

 

Now, I'd like to filter my gallery based on the selected value in this dropdown.

 

I get various of errors when I try to achieve that filter.

 

  • "Invalid argument type"

image.png

  • "Incompatible type"

image.png

 

Hard-coding the filter, that works.

image.png

 

Just wondering how I can get the OptionSetValue from the selected dropdown so that I can use it in my filter for my gallery?

 

I have tried the following workaround, but this gave me a nasty delegation warning and doesn't feel right nor it didn't seem to work somehow:

 

image.png

Any ideas?

Categories:
  • SoPatt Profile Picture
    Microsoft Employee on at

    What comes up when you type a dot "." after Status in your Filter?

     

    I'm not too familiar with OptionSets but you might need Status.Value or some such. The intellisense when you type the dot should give you a clue.

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Wauters 

     

    Try the below for the Items property of your gallery

    Switch(Dropdown6.Selected.Value,"Active", Filter('Damages',Status = 'Status (Damages)'.Active),"Inactive", Filter('Damages', Status = 'Status (Damages)'.Inactive))

     

    Regards,

    Reza

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for posting in the community @Wauters - can you review the above replies and update the thread if they were helpful? 

     

    Thank you,

     

    @Anonymous 

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard