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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
brankocareer
Helper I
Helper I

How to handle blank

Hi all,

 

I am writing a simple DAX to create a new column :

If Different = IFISBLANK('Energy_FTE_View'[If Vacancy Subtype]), 0,1)
But, I take one ID for example, there is a "blank" value, which is considered as non-blank, what can I do?

 
Thank you in advance!
Branko
brankocareer_1-1717093266251.png

 

 
1 ACCEPTED SOLUTION
mark_endicott
Super User
Super User

@brankocareer - If you want to handle this in DAX you could do:

 

IF( OR(ISBLANK('Energy_FTE_View'[If Vacancy Subtype]), 'Energy_FTE_View'[If Vacancy Subtype] = " ") , 0,1)

 

But you will be guessing whether it is "" or " " or "   " and so on. In general I would say you are better off completing this in Power Query by using the Replace Values transformation. This will be easier than trying to account for every eventuality in DAX.

View solution in original post

2 REPLIES 2
mark_endicott
Super User
Super User

@brankocareer - If you want to handle this in DAX you could do:

 

IF( OR(ISBLANK('Energy_FTE_View'[If Vacancy Subtype]), 'Energy_FTE_View'[If Vacancy Subtype] = " ") , 0,1)

 

But you will be guessing whether it is "" or " " or "   " and so on. In general I would say you are better off completing this in Power Query by using the Replace Values transformation. This will be easier than trying to account for every eventuality in DAX.

@mark_endicott  Thank you! It works!

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.