If statement producing DAX Comparison error

WxShady13

Board Regular
Joined
Jul 24, 2018
Messages
185
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I am attempting to use the below measure to compare a concatenated column. When I get the 1, 2, 3, 4 then I can use another measure to accurately determine Employee TO %. The formula worked fine when it was just comparing FT or PT, however now that it is comparing FT2021, FT2022, etc. it is giving me the Dax Comparison Operations do not support comparing values. The concatenated column is text exactly like the FT/PT column so I am not sure what is causing the error.



1643036279918.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You've put an = instead of a comma in the section for 3:

IF(Prototype[Concat FTPT and Year] = "PT2021" = 3,

should be:

IF(Prototype[Concat FTPT and Year] = "PT2021", 3,
 
Upvote 0
Solution

Forum statistics

Threads
1,223,677
Messages
6,173,791
Members
452,534
Latest member
autodiscreet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top