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
maserr
Helper IV
Helper IV

Differentiation between 0 and blank

Hi there,

 

I would need to internally differentiate when a measure is 0 or blank, depending on the result of the calculation if this makes 0 or if there is no data so it cannot make a calculation.

 

thanks in advance

5 REPLIES 5
amitchandak
Super User
Super User

@maserr , Check blank with

isblank

 

example

if(isblank([Col1]),1,0)

if([Col1]=0,1,0)

Hi,

I know the ISBLANK() function but how internally I know the difference between a value that has calculated that the result is 0 from a result of a measure that cannot calculate anything because there is no data?

Thanks

Hi @maserr ,

 

The description is not very clear. Try to create such a measure:

Measure 2 = IF(ISBLANK([Measure]),"NULL",[Measure])

If it doesn't meet your requirements, please describe more about how you want to distinguish between 0 and blank.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Lian

There are two cases:

1. The measure calculates and the value obtained is 0

2. The measure is not calculating anything because there is no data, so the value is NULL

The second case is possible when the measure is referring per example to a month that does not include information. How can I differentiate these two cases?

Thanks

Hello, did you find a solution?

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.