Forum Discussion
Sweetie
5 years agoNew Member
DAX Comparison operators
Hi, I am trying to compare a measure value with null("") through OR condition Ex:Measure = if(precreatedMeasure1 = "" || precreatedmeasure2 =0, "",sum(columndata)). There is no error in...
- 5 years ago
DAX uses BLANK() for database nulls.
You can try above code it will resolve your issue and you can also refer below article.
https://docs.microsoft.com/en-us/dax/blank-function-dax
Samarth_18
5 years agoCommunity Champion
DAX uses BLANK() for database nulls.
You can try above code it will resolve your issue and you can also refer below article.
https://docs.microsoft.com/en-us/dax/blank-function-dax
Sweetie
5 years agoNew Member
Hi Samarth_18 ,
Thanks for your reply, I could understand now that Blank( ) and null aren't same but DAX treats them as same.
And yes, DAX COMPARISON OPERATORS works fine when comparing with Blank( ).