cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft chmills
Microsoft

Help creating a filter based upon a choice field

Hi Everyone,

 

I was having a look at the service desk example. There a filter gallery is displayed as a first screen. I figured out how to create a dropdown using a text field as a filter based upon another post. 

 

However, now I want to filter based upon a "choice" field.  Actually, most of the functions I want to do with choice fields don't seem to work as I'm getting a datatype error.

 

Does anyone know how to do this?

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Help creating a filter based upon a choice field

Hi Chmills,

 

Are you using the connection with SharePoint Online? I assumed that you have a Choice field in the list and you want to filter the gallery based on this Choice field.

 

PowerApps expects the filtered/Searched fields to be text fields. So it is currently not possible to filter by using a Choice filed. Please check this documentation about Filter function for more details:
https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Meneghino
Level 10

Re: Help creating a filter based upon a choice field

It IS possible to filter by choice fields and it is even possible to patch data to them.

The problem is that the filtering will not be delegated (yet) so you will only query the first 500 rows.

You just need to add .Value after the name of your choice column, such as in the screenshot below.

The blue i warning is to say that this operation will not be delegated.

__.JPG

EdHacker
Level: Powered On

Re: Help creating a filter based upon a choice field

Has a target been announced for the delegation of  "Choice Fields"?

 

Are there any workarounds for this?

 

 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,433)