Forum Discussion
Error DAX comparison operations do not support comparing values of type Text with values of type Int
- 7 years ago
Seems to me that DIFF column is formatted as text.
Try this
Measure = CALCULATE ( COUNTROWS ( FILTER ( 'Table1', VALUE ( 'Table1'[Diff] ) = 0 ) ) )
- 7 years ago
Hi BBIUser
You may try to change the type of Diff column to 'Whole Number'. Then your measure will not get the error.
Regards,
Cherie
Hi BBIUser
You may try to change the type of Diff column to 'Whole Number'. Then your measure will not get the error.
Regards,
Cherie
- BBIUser7 years agoHelper IV
I was trying to change the Measure's data type to Whole number instead of the Custom Column. Changing the Custom Column to Whole Number data type with my original DAX worked for me as suggested by Cherie.
Thanks for the Solutions v-cherch-msft , Zubair_Muhammad and Anonymous.
- Anonymous7 years agoNot applicable
Does anyone know how to find the DAX error when you have formatted every single data table and combined data table to ensure there will be no format errors and there are no warning symbols on any files? I hit the error when trying to add a new measure to a visual. I am basically reproducing the same report I have already done but I need to change the number of reports so I started over and now I can't get any of the equations to work without the DAX format error. Thanks
- kbuckvol7 years agoAdvocate I
Did you figure this out? I am running into the same issue. All my look up values are text but I'm getting and error message about mixed types.