cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chmills
Microsoft
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
v-yamao-msft
Community Support
Community Support

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
Community Champion
Community Champion

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

Anonymous
Not applicable

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

 

Are there any workarounds for this?

 

 

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (49,951)