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
Brijesh
Frequent Visitor

Value 0 is not being recognized

Hi community, 

I have a simple question regarding a calculated column, a 0 value is not being recognised. I have a calculated column (let's call it a column A), formatted whole number data-type. I'm creating another calculated column (let's call it column B) to find out a status based on value in column A. I'm using a simple if statment as per below;

 
Column B = IF('Table1'[Column A] = BLANK(),BLANK(),
IF('Table1'[Column A] <= 1,"Within SLA","Outside SLA"))

 

There are some blank values in column A, hence, in my condition I'm returnig blank for those but there are some 0 values in column A where it should return "Within SLA" INSTEAD it is returing blank!

 

 
 

I would appreciate your help on this issue.

 

Brijesh

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Brijesh , Try like

 

Column B = IF( isblank('Table1'[Column A]) , BLANK(),
IF('Table1'[Column A] < 1,"Within SLA","Outside SLA"))

or


Column B = IF( isblank('Table1'[Column A]) , BLANK(),
IF('Table1'[Column A] <= 1,"Within SLA","Outside SLA"))

View solution in original post

Hi @Brijesh ,

You can watch the following video to get a good understanding of difference with ISBLANK and BLANK():

BLANK,ISBLANK

Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

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

3 REPLIES 3
amitchandak
Super User
Super User

@Brijesh , Try like

 

Column B = IF( isblank('Table1'[Column A]) , BLANK(),
IF('Table1'[Column A] < 1,"Within SLA","Outside SLA"))

or


Column B = IF( isblank('Table1'[Column A]) , BLANK(),
IF('Table1'[Column A] <= 1,"Within SLA","Outside SLA"))

Thanks Amit,

 

It worked like charm!! Do you know why it wasn't working when I was comparing blank value rather than ISBLANK function? I mean what's the difference between these two method?

Hi @Brijesh ,

You can watch the following video to get a good understanding of difference with ISBLANK and BLANK():

BLANK,ISBLANK

Best Regards
Community Support Team _ Rena Ruan
If this post helps, then please consider Accept it as the solution to help the other members find it more.

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

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.