Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PaulDBrown
Community Champion
Community Champion

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?

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






1 ACCEPTED SOLUTION
Anonymous
Not applicable

@PaulDBrown 

 

In Dax Blank equivalent to Zero only when the data type is Numbers. 

blank and zero.JPG

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!

View solution in original post

5 REPLIES 5
Anonymous
Not 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!

Anonymous
Not applicable

@PaulDBrown 

 

In Dax Blank equivalent to Zero only when the data type is Numbers. 

blank and zero.JPG

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!

@az38 @edhans @Anonymous 

 

Thanks everyone for looking into this. It makes sense (sort of... intuitively I assumed that a blank was a no-value) and goes to show that you learn new things every day. 

I solved it easily using an IF statement combined with ISBLANK.  

All the best toyou all!





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






edhans
Super User
Super User

Blank is generally equivalent to zero in DAX. See this excellent overview on Blanks by SQLBI.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
az38
Community Champion
Community Champion

Hi @PaulDBrown 

I've got a false in my data model

what data type of column with blank values?

883877.png

and measure

883877.png


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.