You could use a IF condition to replace 0 with blanks. For example, if you are summarizing a field called "Sales" the following formula would work:
Measure = IF(Sum(Sales)=0,"",Sum(Sales))
Hope this helps.
Adding the additional option based on Ricardo's suggestion:
Measure = IF(Sum(Sales)=0,Blank(),Sum(Sales))
Answer from CR7SMS on Stack OverflowWe can agree (Blank) is super ugly to see on a report cause it just looks broken. but Zero....0000000 looks so good.
I use it as my simple trick that took too long to learn example when talking with over PowerBI developers and inevitably someone in the group facepalms when they realize it was that simple all along.
To do this is at the end of any measure / new column code etc, just add "+0" without quotations to the end of the code line and rejoice should show 0 now.
Measure = COUNT(<column>)
If there is no value in the above they will show (Blank) by default because adding nothing of no type is just that blank.
Measure = COUNT(<column>) +0
This +0 changes things to a math equation which provides a minimum value of 0.
Hope this helps someone and happy Friday.
Videos
You could use a IF condition to replace 0 with blanks. For example, if you are summarizing a field called "Sales" the following formula would work:
Measure = IF(Sum(Sales)=0,"",Sum(Sales))
Hope this helps.
Adding the additional option based on Ricardo's suggestion:
Measure = IF(Sum(Sales)=0,Blank(),Sum(Sales))
If you have a measure [Measure] and you want to replace 0 with a blank, you can do the following:
MeasureReplaceBlank =
VAR Measure = [Measure]
RETURN IF ( Measure = 0, BLANK(), Measure )
Note that since I stored the calculation of [Measure] as a variable, I don't need to call it twice (once for the condition and once for the True branch of the IF function).
Yes, there is. In a calculated column, first test a value for being blank, then test for beign zero:

So, create a flag and filter your sum measure by it, i.e,
No blanks sum = CALCULATE( SUM(Table[Amount]), Test <> "Blank")
Not really. You see, the SUM function in DAX sends a SUM function to SQL, and that converts the NULL values or Blank to 0. That's because DAX is intended to work on Totals (or calculated columns) not on the cell's value . So what you want to do is check out the different versions of each function (or set) to grab only the non-empty values. Of course there are workarounds, but this is the fundamental issue. What can you do?
Check if the value is blank function:
IS BLANK
Marco Russo explains things much better
Or maybe this link will help?
I assume the two blank cards usually display a number value? The problem is that when an aggregation method like SUM summarizes blank or null rows, it returns (blank). There is, for as far as I know, no way to change this default behavior when working with the built in aggregations.
Although not optimal, a solution is with a separate measure. Simply add 0 to the expression
measure = SUM ( [Value] ) + 0
Include an IF before your measurement
Sum =
IF (
SUM ( Planilha1[VALOR CONVERTIDO ] ) = BLANK ();
0;
SUM ( Planilha1[VALOR CONVERTIDO ] )
)

Hey, i am using cards to display count of items i have. Sometimes, i have zero count, but the card displays "(Blank)".
is there a way to display the number "0" instead of that?
I have a table where several of the rows have no values across several columns. I've been asked to replace the no values with a zero. The users want to distinguish between returning a value of 0 and the potential that a user may interpret a blank row/column as an error in retrieving the data.
I've tried a few solutions I've found, but each multiples the number of rows I have.
Anyone have a solution?