Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rpinxt
Solution Sage
Solution Sage

Strange behaviour when I want to show blank as 0

I have this visual :

rpinxt_0-1699975218628.png

As you see the IFU InvQ is blank. It is a simple sum formula.

So I wanted it to show as 0 as follows :

rpinxt_1-1699975273407.png

Whats going on here?

Why do I get hundreds of lines showing 0?

 

Has it to do with the tables being connected as many to many?

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@rpinxt Try this:

Test = IF( ISBLANK( [DelQ] ), BLANK(), SUM('IFU Inventory'[Total Qty]) + 0 )

When you return a 0 then every combination will return that 0 which means that everything shows up in the matrix or visual.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@rpinxt Try this:

Test = IF( ISBLANK( [DelQ] ), BLANK(), SUM('IFU Inventory'[Total Qty]) + 0 )

When you return a 0 then every combination will return that 0 which means that everything shows up in the matrix or visual.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler !

This indeed seems to do the trick:

rpinxt_0-1700032999021.png

Seems to be working in all situation where IFU InvQ is filled, blank or zero.

Bit puzzeled as to why DelQ is involved as this should not be empty anyway.

But do understand what you say about when it brings in a zero it will bring in a zero for al combinations and then the visual will also show all the combinations.

 

@rpinxt Right, you have the concept. The specifics of how to "fix" it will vary depending on the situation, I was just trying to puzzle out a potential fix given the information you provided, the real fix may vary depending on your data and use case.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.