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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors