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
aspitalnick
Frequent Visitor

Zero does not show up in my visuals

In several cells I have a zero value for one of my items. I've added that field to a matrix, a clustered column chart and an advanced card. I tried it as both a sum and an average, and for the numbers greater than zero it works perfectly, but for the zero values it always returns a blank instead of a zero. For purposes of this visual, a blank would mean something different than a zero. How do I get it to show a zero if there is a zero in the excel spreadsheet it is pulling from and a blank if no information is in the cell.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aspitalnick 

 

Thank you very much Kaviraj11 for your prompt reply. Allow me to add a few methods.

 

Here's some dummy data

 

“Table”

vnuocmsft_0-1726040802808.png

 

Here are a few ways you can try:

 

Create measures.

 

 

Method 1 = 
var _sumQuantity = SUM('Table'[Quantity])
RETURN 
IF(
    ISBLANK(_sumQuantity),
    0,
    _sumQuantity
)

 

 

 

Method 2 = COALESCE(SUM('Table'[Quantity]), 0)

 

 

 

Method 3 = SUM('Table'[Quantity]) + 0

 

 

Here is the result.

 

vnuocmsft_1-1726040901582.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @aspitalnick 

 

Thank you very much Kaviraj11 for your prompt reply. Allow me to add a few methods.

 

Here's some dummy data

 

“Table”

vnuocmsft_0-1726040802808.png

 

Here are a few ways you can try:

 

Create measures.

 

 

Method 1 = 
var _sumQuantity = SUM('Table'[Quantity])
RETURN 
IF(
    ISBLANK(_sumQuantity),
    0,
    _sumQuantity
)

 

 

 

Method 2 = COALESCE(SUM('Table'[Quantity]), 0)

 

 

 

Method 3 = SUM('Table'[Quantity]) + 0

 

 

Here is the result.

 

vnuocmsft_1-1726040901582.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

When I try 

CTOPP2 RS Fix = SUM('CTOPP2 4-6'[Rapid Symbolic Naming P-tile] + 0, it puts a zero in all rows, even the blank ones which is not what I was hoping for. I want the fields that are currently total zero in the spreadsheet to show zero on the visuals but leave the blank fields as blanks.
 
aspitalnick_0-1726052708107.png

 

Anonymous
Not applicable

Hi @aspitalnick 

 

In order to better help you solve the problem, please provide sample data that fully covers your problem and the expected results based on the sample data you provided.

 

Regards,

Nono Chen

Kaviraj11
Super User
Super User

Hi,

 

You can create a measure:

 

NewMeasure = IF(ISBLANK(SUM(Table[Field])), BLANK(), IF(SUM(Table[Field]) = 0, 0, SUM(Table[Field])))




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





This method did not work, but thank you for your idea.

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.