Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm trying to create a calculation that will output a percentage based off of true/false data.
Completion Rate =
CALCULATE(COUNT('2024'[Status]),'2024'[In Arbitration?]=TRUE())
"Dax comparison operations do not support comparing values of type text with values of type true/false. Consider using the value or format function to convert one of the values."
I am getting the above error, but I have checked both the data type and format for the column, and they both say "True/False". None of them say "Text". I don't know what to do.
Solved! Go to Solution.
Hi @Leighla00 ,
You're trying to use the function version of TRUE(), rather than a scalar value.
Try changing to this:
CALCULATE(
COUNT('2024'[Status]),
'2024'[In Arbitration?] = 1
)
Boolean values True/False are just the integers 1/0 in the background.
Pete
Proud to be a Datanaut!
Hi @Leighla00 ,
Thank you for reaching out to the Microsoft fabric community forum. regarding the issue your a facing to create a percentage of True/False data.
As @BA_Pete already mentioned, please try using the suggested solution. And also it appears that you have found a resolution. If so, kindly mark the helpful reply and accept it as the solution. This will assist other community members in resolving similar issues more efficiently. Feel free to contact us if you have any further questions.
Thank you.
Have you tried removing the =TRUE() altogether?
Someone at my organization helped me.
CALCULATE (COUNTROWS (tablename), FILTER (tablename, tablename[Status] = in progress)).
Thanks for trying.
Hi @Leighla00 ,
You're trying to use the function version of TRUE(), rather than a scalar value.
Try changing to this:
CALCULATE(
COUNT('2024'[Status]),
'2024'[In Arbitration?] = 1
)
Boolean values True/False are just the integers 1/0 in the background.
Pete
Proud to be a Datanaut!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |