cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pershad
Helper II
Helper II

OptionSetValue error for Choice Column

I have a table T with choice column TStatus. Choice are "Complete" & Balance". 

I have added gallery with datasource T and want to filter only those records with TStatus as "Complete". I am using below formula:

Filter(T,'Created By'.'Primary Email' = User().Email && TStatus= "Complete")

I am getting error "Incompatible types for comparison: These types can't be compared: OptionSetValue, Text"

Appreciate help on this from anyone

1 ACCEPTED SOLUTION

Accepted Solutions
Pershad
Helper II
Helper II

I am able to solve it with trial and error.

Right formula for filtering choice columns in dataverse will be :

Filter(T,'Created By'.'Primary Email' = User().Email && TStatus= 'TStatus(T)'.Complete)

 

View solution in original post

1 REPLY 1
Pershad
Helper II
Helper II

I am able to solve it with trial and error.

Right formula for filtering choice columns in dataverse will be :

Filter(T,'Created By'.'Primary Email' = User().Email && TStatus= 'TStatus(T)'.Complete)

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,180)