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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
lbendlin
Super User
Super User

value = BLANK() versus ISBLANK(value)

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Mystery solved. CONCATENATEX never returns blank. At the minimum it returns an empty string.  So there seems to be a bug in DAX that allows the comparison of an empty string to BLANK() to be true.

 

 

View solution in original post

7 REPLIES 7
lbendlin
Super User
Super User

Mystery solved. CONCATENATEX never returns blank. At the minimum it returns an empty string.  So there seems to be a bug in DAX that allows the comparison of an empty string to BLANK() to be true.

 

 

@marcorusso  I ran this in DAX studio.  Is there a good explanation for this?

 

evaluate row(
"Test1",ISBLANK(""),
"Test2",""=BLANK()
)

marcorusso
Most Valuable Professional
Most Valuable Professional

Thank you Marco.  Would be nice if the article could also mention the "=="  operator.

marcorusso
Most Valuable Professional
Most Valuable Professional

Good suggestion, I just added an example of == in that article. Thanks!

Hi @lbendlin ,

 

 

https://www.youtube.com/watch?v=C26DQkb4hyY

 

Have a look at this video. 

 

Regards,

Harsh Nathani

@harshnathani  Thank you. I am not ashamed to admit that I was not aware of the equality operator ("==") being available in DAX.  That makes more sense now.  Single equal sign does a type transformation.  Thanks again!

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors