Forum Discussion
Wiiilda
Jun 23, 2021Copper Contributor
IF statement for value 0
I need to be able to differentiate 0 vs blank values in a DAX formula. I've tried using ==0 for the number 0 and ="" for blanks, but == seems so be giving error in my DAX formula. How do I make thi...
- Jun 23, 2021
"==" is not supported in Excel. How to handle blanks is here Handling BLANK in DAX - SQLBI
Back to your case. BLANK()=0 returns TRUE, but ISBLANK(0) returns FALSE. Thus formula could be
Please check in attached file.
SergeiBaklan
Jun 23, 2021Diamond Contributor
"==" is not supported in Excel. How to handle blanks is here Handling BLANK in DAX - SQLBI
Back to your case. BLANK()=0 returns TRUE, but ISBLANK(0) returns FALSE. Thus formula could be
Please check in attached file.
- WiiildaJun 24, 2021Copper ContributorThank you. Is there some similar solution if I want to exclude value 0 but keep blanks with an advanced filter.
I've tried amount: <>"0"- SergeiBaklanJun 24, 2021Diamond Contributor