Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Comparing two measures [Ref CY], [Ref PY] and deriving a custom tag for each record.
The calculation below works well for some scenarios but incorrectly calculates if it meets "ELSE" condition records. Any suggestion would be much appreciated.
Priority =
IF
( AND
( [Ref CY]=0,[Ref PY]=0),"C",
IF
( AND ([Ref CY]=0,[Ref PY]>=1),"b",
"B")
)
Priority Alt =
SWITCH
(
TRUE,
(([Ref CY]=0) && ([Ref PY]=0)), "C",
(([Ref CY]=0) && ([Ref PY]>=1)), "b",
"B"
)
The calculation works well
But it is incorrect if any record meets on ELSE condition
Solved! Go to Solution.
Power BI is not case sensitive. "B" and "b" will be grouped together in the UI.
Power BI is not case sensitive. "B" and "b" will be grouped together in the UI.
Thank you. You saved me. It works.
I need to research how it's grouped together and learn more. Added space to achieve the result.
"DAX is simple but not easy"
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!