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

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

Re: If Statement Using CDS Dropdown Issue in Setting Label

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

Re: If Statement Using CDS Dropdown Issue in Setting Label

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

DarenD Helper II
Helper II

Re: If Statement Using CDS Dropdown Issue in Setting Label

Sik,

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

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Attending MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’re streaming the digital event live, or watching on-demand, claim your attendee badge to sport on your profile.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We're launching a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Emergency Response & Monitoring Solution

Emergency Response & Monitoring Solution

Microsoft has created a regional government emergency response and monitoring solution that is built on Power Apps and Power BI.

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