cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DarenD
Level: Powered On

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
Level 10

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
v-siky-msft
Level 10

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
Level: Powered On

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (5,550)