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.
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...
Solved! Go to Solution.
@Anonymous , Check with isblank once
IF(isblank([ColumnX])&& isblank(ColumnY),[do X],[doY])
@Anonymous , Check with isblank once
IF(isblank([ColumnX])&& isblank(ColumnY),[do X],[doY])
hey amitchandakm,
thanks a lot, that helped perfectly 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |