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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mecr123
Frequent Visitor

Display a 0 instead of a blank

hi

I have search the various solutions but I still cannot show a 0 instead of a blank.
I am using a matrix visual to display my data.


I have tried the following


Sales Quantity =
IF (
    CALCULATE ( SUM (Sales[Invoice_Qty] ) ) = BLANK (),
    0,
    CALCULATE ( SUM (Sales[Invoice_Qty] ) )


I also tried

Sales Quantity = IF ( ISBLANK(SUM(Sales[Invoice_Qty])), 0  ,SUM(Sales[Invoice_Qty]))

 

thanks

Mike

 

2 ACCEPTED SOLUTIONS
v-chuncz-msft
Community Support
Community Support

@mecr123,

 

You may take a look at the following post.

https://community.powerbi.com/t5/Desktop/How-to-show-zeroes-in-a-matrix-0-is-not-working/td-p/325999

Community Support Team _ Sam Zha
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

Hi

 

I did not succeed in displaying the zeros - I will close this as I have moved on from the issue and published the report without showing the zeros - it was going to be a nice to have for the user.

 

thanks to all for their help

regards

Mike

View solution in original post

5 REPLIES 5
v-chuncz-msft
Community Support
Community Support

@mecr123,

 

You may take a look at the following post.

https://community.powerbi.com/t5/Desktop/How-to-show-zeroes-in-a-matrix-0-is-not-working/td-p/325999

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

I did not succeed in displaying the zeros - I will close this as I have moved on from the issue and published the report without showing the zeros - it was going to be a nice to have for the user.

 

thanks to all for their help

regards

Mike

themistoklis
Community Champion
Community Champion

@mecr123

 

Try the following:

Sales Quantity =
IF (
    LEN(CALCULATE ( SUM (Sales[Invoice_Qty] ) ) ) = 0,
    0,
    CALCULATE ( SUM (Sales[Invoice_Qty] ) )

hi 

 

No - it is still displaying blanks instead of 0's

@mecr123

 

Any chance to send a snapshot of your formula and your output table?

If you could also share the workspace that would be great. Mask any sensitive data

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors