Forum Discussion
poojik
8 years agoFrequent Visitor
Error: DAX comparison operations do not support comparing values of type true/false
I am trying to create a new calcuated field to count all the account names if "ValidationStatus" is TRUE. The formula I am using is : Validated count = CALCULATE(DISTINCTCOUNT(accounts[name]),FI...
Vvelarde
8 years agoCommunity Champion
Hi try with this
Validated Count =
CALCULATE (
DISTINCTCOUNT ( Accounts[name] );
FILTER ( Accounts; Accounts[validationstatus] = TRUE () )
)Regards
Victor
poojik
8 years agoFrequent Visitor
- Vvelarde8 years agoCommunity Champion
- poojik8 years agoFrequent Visitor
The data type in Power BI desktop is True/False and the solution
Validated Count = CALCULATE ( DISTINCTCOUNT ( Accounts[name] ); FILTER ( Accounts; Accounts[validationstatus] = TRUE () ) )works for power BI desktop. But when I publish the report on Power BI pro online. The data values chages to 0 and -1 hence the solution doesn't work.
I am not able to edit the expression in power BI pro to make it compatible.
- v-jiascu-msft8 years agoMicrosoft Employee