I am getting this error when I try to create a column in Power BI:
Function SWITCH
does not support comparing values of type True/False with values of type Text. Consider using the VALUE
or FORMAT
function to convert one of the values.
How do I fix this?
Here is the DAX for the column I am creating:
Status =
SWITCH (
[G1TDTE] = "Null",
"Plan", AND ( [G1DDTE] = "Null", [G1CDTE] = "Null" ),
"Undone Wip", [G1CDTE] = "Null",
"Done Wip", "Finished"
)
The columns have the type text because I replaced values in query editor from 0 to "Null".