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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
kmacd8
Frequent Visitor

Calculated column 'zero' value not being recognized?

Hi community, 

I have what I assume is a simple question regarding a cell in my table not being recognized as a zero. 

I have a calculated column, formatted to be a fixed decimal number data-type, and a decimal number. The calculated column has several distinct values, one of which is showing as 0.00 (which is calculated correctly). However, when I apply a visual filter to exlude items that are equal to zero - I am still getting the "0.00" showing up in my report? 

Any help is much appreciated.Visualization showing zeros despite my filter?Visualization showing zeros despite my filter?image.pngCalculated column values from table-viewCalculated column values from table-viewCalculated column.Calculated column.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try this calculated column formula

=IF(your calculated column formula=0,BLANK(),your calculated column formula)


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Hi,

Try this calculated column formula

=IF(your calculated column formula=0,BLANK(),your calculated column formula)


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This worked! Thanks to you, and all that attempted to help!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi ,

 

Are the results the same when 0.00 value is inputed in the "is not" field

sorry - I understand now. Yes - when I input 0.00 as the filtered value - it still has the same result. 

What happens if you wrap your calculation in a ROUND and set it to two decimal places, then try filtering on 0.00?

Tried this. Same issue... In fact - when I try to change the filtered value to '0.00' - it just defaults back to '0'. 

Interesting. In the report view, click on the modelling header and then click on your calculated column. In the middle of the modelling tool bar, does it have number listed as the data type?

 

Might be an error or something non-numeric is being output by the formula for your column.

 

 

Yes - the screenshot below shows the data type and format as decimal number. Also - I have double checked to be sure that each of the referenced columns from the fomula are also showing as a 'number' within the data type. 

(Thanks for trying to help me out here).

image.png

Not a problem - I'm at a loss! Perhaps it may work with the filter condition set to greater than 0? Otherwise it may be a bug with the filter pane. Maybe worth trying applying the filter using a slicer or the old visual filter panel.

 

Sorry I couldn't be of more help.

You mean as the 'is' field? The original filter is setup as 'is not' - 

When I change the filter to be 'is' - yes, I lose the zero's from the visualization... I'm sorry if I am misunderstanding your follow up...

image.pngimage.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.