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 / How to filter choice d...
Power Apps
Answered

How to filter choice data type?

(0) ShareShare
ReportReport
Posted on by 55

Hi,

I am trying to filter data in a gallery based on text input and dropdown box values. I have three tables, Service, Location and Status. Status only contains a choice field with "Open" and "Closed" as the available options.

I want to allow users to filter for Open and Closed cases by selecting Open/Closed from a drop down box

I cannot seem to select "Status" as the source. Instead I set item  = ["Open", "Closed"]. The problem is I don't know the correct filter expression.

Filter(Service,SDB_Status = [@SDB_Status].Open) works when applied directly to the Gallery. Filter(Service,SDB_engineer = dropdown.selected.value) works because SDB_engineer is a normal text data type field. But if I replace SDB_engineer with SDB_Status, [@SDB_Status] or SDB_Status. value the filter does not work.

What is the correct way to filter/search/lookup data in fields that are a choice date type?

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! I always use something like: 

     

    Filter(Service,SDB_Status = Dropdown.Selected.Value)

     

    If this does not show nothing, try this: 

     

    Filter(Service,SDB_Status = Dropdown.Selected)

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Naps ,

     

    You can try below code if it helps. 

     

    Filter(Service,SDB_Status.Value=YourDropdownName.Selected.Value)
    

     

    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.

  • Naps Profile Picture
    55 on at

    Thanks. I was sure I tried that but it wasn't working. Now its working.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard