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
Chas2002
Helper III
Helper III

Measure: DAX + 0 not returning 0

Hi,

 

Have this measure built, but it's still returning (Blank)?

 

Disposition = 
CALCULATE(
COUNTA('CallRecord'[Final Disposition Of Call]),
'CallRecord'[Final Disposition Of Call] IN {3} 
) + 0

 

As a test I changed + 0 to + 1 and checked, it does show 1 so I know the measure is working, it's just not showing 0 instead of (blank) when no count is returned for Final Disposition= 3.

 

For context: [Final Disposition of Call] is a Whole Number and contains values: 1, or 2, or 3, or 4, or 5, or 6, or 7 and it's never empty/null...

 

What should be my next step?

 

Thanks,

Chas

 

1 ACCEPTED SOLUTION

Hi @Chas2002

 

Thanks - downloade the file.

 

I get exactly the same issue, but only on that particular visual. If I change to a table or other visual, zero displays correctly in the tooltip.

 

As a temporary fix, you could change 0 to any small enough number, for example the smallest possible positive decimal number 2.23E-308

 

So the issue appears to be not the measure itself, but the way that this particular visual displays the measure in the tooltip.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

7 REPLIES 7
OwenAuger
Super User
Super User

Hi Chas,

That's odd, because BLANK () + 0 should always be zero, so can't explain why it's not working in the first place

 

You could try this instead

Disposition =
VAR Disp =
    CALCULATE (
        COUNTA ( 'CallRecord'[Final Disposition Of Call] ),
        'CallRecord'[Final Disposition Of Call] IN { 3 }
    )
RETURN
    IF ( ISBLANK ( Disp ), 0, Disp )

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi Owen,

 

I used your measure formula and it still returns (blank)?

 

I must be missing something...

 

disposistion.jpg

Not sure myself...any chance you could post a pbix file, santised if needed?

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi Owen,

 

Thanks for your help.

 

You can find the .pbix zip file here: https://www.dropbox.com/s/gl3gdbnqarqrmwb/testPBIX.zip?dl=0

 

Unzip it to: C:\

 

Let me know when you've downloaded it so I can remove.

 

If you hover over Skill Set 4 in the chart, you'll see the (Blank) issue.

 

Chas

 

PS - you may have to copy and paste the link, doesn't seem to work if you click in PwrBI Forums...

Hi @Chas2002

 

Thanks - downloade the file.

 

I get exactly the same issue, but only on that particular visual. If I change to a table or other visual, zero displays correctly in the tooltip.

 

As a temporary fix, you could change 0 to any small enough number, for example the smallest possible positive decimal number 2.23E-308

 

So the issue appears to be not the measure itself, but the way that this particular visual displays the measure in the tooltip.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Hi Owen,

 

Thanks, you're analysis was spot on.  I contacted the company that built the vizulation and they are working to correct it.

 

Thanks again,

Chas

@Chas2002

 

This look like an issue of the custom visual

 

Try using anothe visual to see if the blank still happen

 

Regards

 

Victor




Lima - Peru

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.