cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mecr123 Frequent Visitor
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

Accepted Solutions
Community Support Team
Community Support Team

Re: Display a 0 instead of a blank

@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

mecr123 Frequent Visitor
Frequent Visitor

Re: Display a 0 instead of a blank

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
themistoklis New Contributor
New Contributor

Re: Display a 0 instead of a blank

@mecr123

 

Try the following:

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

Re: Display a 0 instead of a blank

hi 

 

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

themistoklis New Contributor
New Contributor

Re: Display a 0 instead of a blank

@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

Community Support Team
Community Support Team

Re: Display a 0 instead of a blank

@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

mecr123 Frequent Visitor
Frequent Visitor

Re: Display a 0 instead of a blank

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

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (2,489)