Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |