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!View all the Fabric Data Days sessions on demand. View schedule
i am not able to write switch and if in meaure.someone help me with example
i am able to write it in column
Solved! Go to Solution.
Hi @aravindh10 ,
You could try to use below formula:
Slab = IF((CALCULATE(MAX(APL[APL.ITEM_STATUS_CD])) <>"C" &&CALCULATE(SUM( [Due Days])) <0 ),"Overdue", IF(CALCULATE(MAX(APL[APL.ITEM_STATUS_CD])) <>"C" && CALCULATE(SUM( [Due Days]))>=0&& CALCULATE(SUM( [Due Days]))<31,"0-30"))
Result:
Regards,
Daniel He
Hi @aravindh10 ,
You could try to use below formula:
Slab = IF((CALCULATE(MAX(APL[APL.ITEM_STATUS_CD])) <>"C" &&CALCULATE(SUM( [Due Days])) <0 ),"Overdue", IF(CALCULATE(MAX(APL[APL.ITEM_STATUS_CD])) <>"C" && CALCULATE(SUM( [Due Days]))>=0&& CALCULATE(SUM( [Due Days]))<31,"0-30"))
Result:
Regards,
Daniel He
Check out the November 2025 Power BI 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!