Forum Discussion
BLANK greater than an integer?
Hi all,
Can anyone confirm that a BLANK value is computed as greater than a value?
I have a measure which compares two values, to be used in conditional formatting. My surprise arises when I see that a blank value returns TRUE when it is compared to a value (positive in my case, but I don't see why it should make a difference; a blank is a blank, isn't it?).
What's the logic?
- Anonymous6 years ago
In Dax Blank equivalent to Zero only when the data type is Numbers.
For other data types(Date, Text), a blank is just a blank.
Paul Zheng
Don't forget to hit THUMBS UP and mark it as a solution if it helps you!
5 Replies
- az38Community Champion
Hi PaulDBrown
I've got a false in my data model
what data type of column with blank values?
and measure
- edhansCommunity Champion
Blank is generally equivalent to zero in DAX. See this excellent overview on Blanks by SQLBI.
- AnonymousNot applicable
In Dax Blank equivalent to Zero only when the data type is Numbers.
For other data types(Date, Text), a blank is just a blank.
Paul Zheng
Don't forget to hit THUMBS UP and mark it as a solution if it helps you!- PaulDBrownCommunity Champion
- AnonymousNot applicable
What I really do not understand is how come this is not seen as a bug? A Zero/False() is a valid value and it is not the same as a BLANK/NULL as this means no value at all. Surely this is a bug!