cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DarenD
Helper III
Helper III

If Statement Using CDS Dropdown Issue in Setting Label

I'm trying to set a label field to either 0 or 1 based on the dropdown value from a CDS field.  I'm getting the following error: "Incompatible Type. We can't evaluate your formula because the values being compared in formula are not the same type."

 

I'm not sure what I missed but could use some help. I've attached a jpg of the issue for reference.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-siky-msft
Community Support
Community Support

Hi @DarenD ,

 

What is the data type of CDS field?

If the field is option set, please modify your formula as below:

If(Combobox1.Selected.Value= OptionSetName. 'N/A', 0 ,1)

Best regards,

Sik

View solution in original post

2 REPLIES 2
v-siky-msft
Community Support
Community Support

Hi @DarenD ,

 

What is the data type of CDS field?

If the field is option set, please modify your formula as below:

If(Combobox1.Selected.Value= OptionSetName. 'N/A', 0 ,1)

Best regards,

Sik

Sik,

  thank you very much! That does seem to work just fine! Now onto having multiple options under the IF statement. 🙂

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 (4,444)