The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I am making a measure based off a filtered visual on the dashbaord so it gives a grade. I made the measure to get the information from the visual I need help getting the conftional formatting correct becsue I get this error.
" MdxScript(Model) (16, 13) Calculation error in measure 'COAParameterRawScore[Measure]: Dax comparison operations do not support comparing values of type True/False with values of type Number. Consider using the VALUE or FORMAT function to convert one of these values.
here are the code slices:
Any and all help is appericated. 🙂
Solved! Go to Solution.
Hi @BigESloth - can check below measure:
MEASURE =
IF (
[Filter] > 92.5,
"A",
IF (
AND([Filter] > 85, [Filter] <= 92.5),
"B",
IF (
AND([Filter] > 77.5, [Filter] <= 85),
"C",
"D"
)
)
)
hope it works, if any please share sample data or pbix file for reference.
Proud to be a Super User! | |
Hi rajendraongole1 ,thanks for the quick reply, I'll add more.
Hi @BigESloth ,
I've taken a general look at your dax expression for this part, and I don't think there's anything wrong with it.
I think the mistake should be here.
85 < [Filter] && [Filter] <= 92.5,
Best Regards,
Wenbin Zhou
Hi rajendraongole1 ,thanks for the quick reply, I'll add more.
Hi @BigESloth ,
I've taken a general look at your dax expression for this part, and I don't think there's anything wrong with it.
I think the mistake should be here.
85 < [Filter] && [Filter] <= 92.5,
Best Regards,
Wenbin Zhou
Hi @BigESloth - can check below measure:
MEASURE =
IF (
[Filter] > 92.5,
"A",
IF (
AND([Filter] > 85, [Filter] <= 92.5),
"B",
IF (
AND([Filter] > 77.5, [Filter] <= 85),
"C",
"D"
)
)
)
hope it works, if any please share sample data or pbix file for reference.
Proud to be a Super User! | |
User | Count |
---|---|
80 | |
74 | |
41 | |
30 | |
28 |
User | Count |
---|---|
107 | |
96 | |
55 | |
47 | |
47 |