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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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