Showing results for 
Search instead for 
Did you mean: 
New Member

OptionSetValue Error

This is the kinda strange error i am getting when i enter different formula for equation. One time it is working while other time is it not working. Please look at attached pic and suggest solution if any. Thanks

In this formula there is no error:

CountIf(DoctorInfo, 'Deal Status' = DealStage.'In-progress')

But when i replace Doctorinfo to another formula I am getting strange error of OPTIONSETVALUE


CountIf(Distinct(DoctorInfo,Mobile), 'Deal Status' = DealStage.'In-progress')




Super User
Super User

Hello @PowerUserIndia,


You are comparing wrong column. You are comparing DEAL STATUS with DEALSTAGE.


So Try comparing like below


CountIf(DoctorInfo, 'Deal Stage' = DealStage.'In-progress')


Please mark as Answer if it is helpful and provide Kudos

Subscribe :
Blog :


Helpful resources

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,325)