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
Anonymous
Not applicable

Does PowerBI not Distinguish between an empty field (BLANK) and the integer Zero (0)

Hi there folks

 

i have following problem, I want to exclude all empty fields from an IF-clause but keep fields with a zero. It seems like PowerBI does not distinguish between BLANK and the integer 0 in one of the columns because if I type in the following:

IF(ColumnX = BLANK() && ColumnY = BLANK(),do X, doY)

it also excludes rows in Column X and Column Y that include an integer 0 and the result than is X also it should be Y because for me 0 is not blank and i´m getting into trouble with this interpretation of powerbi^^

 

Where is the problem here? what can I do? 

 

In my case only Column Y includes 0

If I explicitly include the 0 in the IF (like: IF(ColumnX = BLANK() && ColumnY = BLANK() && ColumnY <>0,do X, doY)) to avoid this, PowerBi now thinks tha Blanks are 0 and now the result is Y even if both columns are blank. this confuses me...

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Check with isblank once

IF(isblank([ColumnX])&& isblank(ColumnY),[do X],[doY])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Check with isblank once

IF(isblank([ColumnX])&& isblank(ColumnY),[do X],[doY])

Anonymous
Not applicable

hey amitchandakm,

 

thanks a lot, that helped perfectly 🙂

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.