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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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