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 / Filtering Dataverse Ch...
Power Apps
Answered

Filtering Dataverse Choice Column

(0) ShareShare
ReportReport
Posted on by 1,207

I'm new to Dataverse and having trouble filtering on a choice column to populate a combobox in Power Apps. I have a Dataverse table 'Staff' that lists employees and their role.

 

Columns:

EmpName (Text)

Role (Choice)

 

Role choices are: Manager, Operator

 

I have a combo box in Power Apps called cmbManager. I want to filter the items so only the names of people with role of Manager are displayed.

 

Here is what I put in the Items:

 

This gives me a delegation warning and incompatible type (Table vs OptionSetValue(Role))

Filter(Staff,Role = [@Role].Manager)

 

Another attempt but again get incompatible type

Filter(Staff,Role.Value = [@Role].Manager)

 

 

Categories:
I have the same question (0)
  • Digital Profile Picture
    1,207 on at

    I used this method to get my combobox items :

     

    Filter(
     Staff,
     First('Role').Value = 'Staff Role'.'Manager'
    )

     

    This populates the combo box with the the correct staff members for that role but I get a delegation warning. I feel like this should be a straightforward thing to do and that I must be doing something wrong.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Digital 

    Try this,

                   Filter(Staff, Role='Staff Role'.'Manager')  

    This will not give any delegation warning.

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Digital ,

    Use in ComboBox Items:

    Choices('Role (Staff)')

     and in Filter() function:

    Filter(Staff,Role=ComboBox.Selected.Value)

    Hope it helps !

     

  • Digital Profile Picture
    1,207 on at

    @gabibalaban ,

     

    This gives me the role choices in the combo box but I don't want that. I want the combobox to contain the names of staff whose role is Manager. I'm not using the combobox.selected.value to filter a gallery or anything.

     

    @CNT ,

     

    That is what I assumed would work but I get a delegation and incompatible type warning. 

     

    I need the Manager combo box to give the user a list of Managers to select from.

     

    I need the Operator combo box to give the user a list of Operators to select from.

     

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Digital The formula I gave is fine and should work. I have tested it. Your problem could be something else. Send a screen shot of the Table definition in Dataverse and also your App (showing the formula with the error).

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Digital ,

    And this formula gives you delegation error too ?

    Filter(
     Staff,
     'Role' = 'Role (Staff)'.Manager
    )
  • Digital Profile Picture
    1,207 on at

    @gabibalaban 

    @CNT 

     

    I appreciate your help.

     

    This is the formula I tried in the Items property of the combobox where I want to display the names of people where 'Crew Role' = Foreperson.

     

    I get an incompatible type error and also a delegation warning

     

    Filter(
     SM_Ref_CrewMembers,
     'Crew Role'='Crew Role'.Value
    )

     

    crew_member_app_error.PNG

     

    This is some example table data 

    crew_member_data.PNG

    And this is the table definition. I tried making Crew Role Searchable too but it didn't make a difference.

     

    crew_member_definition.PNG

     

    Thanks,

    Dean

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Digital The Data Types Choice and Choices are different in Dataverse. As the name suggests, Choice will let you choose one option whereas Choices will let you choose multiple options. If the field 'Crew Role' will have only one value at any given time using the Choice datatype is better and the formula I gave you earlier will work.

    But if you want to have the possibility to choose multiple values, you can use Choices and then the formula will be,

    Filter(
     SM_Ref_CrewMembers,
     'SM Crew Member Role'.Foreperson in 'Crew Role')
    )

     

  • Digital Profile Picture
    1,207 on at

    @gabibalaban 

    @CNT 

     

    I was using the Choices type when I should've been using Choice. I didn't even realise there was a Choices type! Apologies to you both and thanks for your help.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Digital Glad to help!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard