cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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
Super User IV
Super User IV

@DerWindy , Check with isblank once

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Super User IV
Super User IV

@DerWindy , Check with isblank once

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

hey amitchandakm,

 

thanks a lot, that helped perfectly 🙂

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors