cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Option Set Specification error

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
Highlighted
Dual Super User III
Dual Super User III

Re: Option Set Specification error

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!
Highlighted
Community Support
Community Support

Re: Option Set Specification error

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

Highlighted
Frequent Visitor

Re: Option Set Specification error

Hi @yashag2255 

 

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

Highlighted
Frequent Visitor

Re: Option Set Specification error

Hi @v-xida-msft 

 

Thank you so much! It solved my error 🙂

 

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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