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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Power BI Community,
I am creating a Dax formula with Switch (True()) case:
Solved! Go to Solution.
@Anonymous
Try this one
Nested If = SWITCH ( TRUE (), Data[Margine C] <= 0.00, "<=0%", Data[Margine C] <= 0.15, ">=0% <15%", Data[Margine C] <= 0.20, ">=15% <20%", Data[Margine C] <= 0.30, ">=20% <30%", Data[Margine C] <= 0.50, ">=30% <50%", Data[Margine C] > 0.50, ">= 50%" )
@Anonymous
Try this one
Nested If = SWITCH ( TRUE (), Data[Margine C] <= 0.00, "<=0%", Data[Margine C] <= 0.15, ">=0% <15%", Data[Margine C] <= 0.20, ">=15% <20%", Data[Margine C] <= 0.30, ">=20% <30%", Data[Margine C] <= 0.50, ">=30% <50%", Data[Margine C] > 0.50, ">= 50%" )
@ Zubair_Muhammad, thank you it worked.