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,
I have very simple task but it seems to me that it is an issue with Power BI.
I have a looped IF however when there is no value it gives me BLANK as oppose to 0.
Measure= IF('Table1'[Col A] <> 0
, 'Table1'[Col A],IF('Table1'[Col B] <> 0
, 'Table1'[Col B], IF('Table1'[Col C] <> 0
, 'Table1'[Col C],IF('Table1'[Col D] <>0
,'Table1'[Col D], IF('Table1'[Col E] <> 0
, 'Table1'[Col E], 0)))))
I tried to add + 0 at the end but it did not work,
Solved! Go to Solution.
The answer is rather easy.
I added a measure with the simplest code possible.
Measure2=sum('Table1'[Measure]) + 0
Hi
Where did you add the 0, if you add it as shown below it should display 0.
Measure= IF('Table1'[Col A] <> 0, 'Table1'[Col A], IF('Table1'[Col B] <> 0, 'Table1'[Col B], IF('Table1'[Col C] <> 0, 'Table1'[Col C], IF('Table1'[Col D] <>0,'Table1'[Col D], IF('Table1'[Col E] <> 0, 'Table1'[Col E], 0) ) ) ) )+0
Thanks
Raj
The answer is rather easy.
I added a measure with the simplest code possible.
Measure2=sum('Table1'[Measure]) + 0
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |