DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function.
You compared a text value to a number.
Why it happens
- A column typed Text is compared to a numeric literal or measure.
IF ( Table[Code] = 1, ... )where Code is text.- A join/lookup key with mismatched types.
How to fix it
- Fix the column's data type in Power Query so like compares to like.
- If you can't, convert explicitly:
VALUE ( Table[TextCol] )orFORMAT ( Table[Num], "0" ). - Align key types on both sides of any comparison or relationship.