Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi All,
Please suggest how to handle zero or null values in below measure
Thank you.
Solved! Go to Solution.
@Snagalapur you can set the zero values as blank like below expression
Sales =
var num = SUM(Table[Sales])
var den = SUM(Table[Gross])
var a = DIVIDE(num,den,0)
return
IF(a == 0, BLANK(), a)
Thanks,
Jai
Proud to be a Super User! | |
Use the DIVIDE function rather than the / operator.
@Snagalapur you can set the zero values as blank like below expression
Sales =
var num = SUM(Table[Sales])
var den = SUM(Table[Gross])
var a = DIVIDE(num,den,0)
return
IF(a == 0, BLANK(), a)
Thanks,
Jai
Proud to be a Super User! | |
Thank you for help.