cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnjaliAnil
Frequent Visitor

Option Set Specification error

Hi,

 

I want my text field to display just the job cards with 'job status' as 'problem solved'. However when I try doing this using the value and name of the option, it shows an error.

snip1.JPGsnip2.JPG

 

Please help with this error.

 

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

HI @AnjaliAnil ,

Do you want to filter your 'Job Cards' records based on the "Job Status" column value?

Is the 'Job Status' a Option Set type column/Two Options column in your 'Job Cards' Entity?

 

Based on the formula you provided, I think there is something wrong with it. I have made a test on my side, please consider modify your formula as below:

CountIf(
             'Job Cards',
             'Customer Asset'.crbb4_customerassetid = AssetListGallery.Selected.crbb4_customerassetid && 'Job Status' = [@'Job Status'].'problem solved'
)

Note: The 'Job Status' represents the Option Set name which binds to the 'Job Status' column in your 'Job Cards' Entity.7.JPG

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
yashag2255
Dual Super User II
Dual Super User II

Hi @AnjaliAnil 

 

To resolve this, you can update your expression in two ways, please replace the written expression with the Job Status part in your expression.
 
1) Convert the Option Set column value to Text value
Text('Job Status') = "problem solved"
 
2) Compare with the Option Type field value:
'Job Status' = 'Job Status (Job Cards)'.'problem solved'
 
The highlighted part is the convention for 'Column Name (Entity Name)'.Option
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
v-xida-msft
Community Support
Community Support

HI @AnjaliAnil ,

Do you want to filter your 'Job Cards' records based on the "Job Status" column value?

Is the 'Job Status' a Option Set type column/Two Options column in your 'Job Cards' Entity?

 

Based on the formula you provided, I think there is something wrong with it. I have made a test on my side, please consider modify your formula as below:

CountIf(
             'Job Cards',
             'Customer Asset'.crbb4_customerassetid = AssetListGallery.Selected.crbb4_customerassetid && 'Job Status' = [@'Job Status'].'problem solved'
)

Note: The 'Job Status' represents the Option Set name which binds to the 'Job Status' column in your 'Job Cards' Entity.7.JPG

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @yashag2255 

 

Thank you for you help but unfortunately both these formulae still gave error.

Hi @v-xida-msft 

 

Thank you so much! It solved my error 🙂

 

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,279)