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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Creating a custom column with a New word if date column is empty or null

Hi, Trying to manage data that is missing info.  I have one column that shows type of 'termintaed' or 'new hire'.  I have another column that shows 'acquired date' .  The column that shows acquired date is for existing employees of a new company that we bought so they are really not a new hire.  I want to take the column with the current terminated or new hire, and add a new option in the column of aquired, based on if there is date in the 'acquired date' field.  Its got dates, blanks and null in it.

 

The columns are all in the same table.  Do I do this in query editor or a dax measure or column in desktop?  And what would be the formula?

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could create a calculated column using IF() and ISBLANK() function.

https://docs.microsoft.com/en-us/dax/if-function-dax 

https://docs.microsoft.com/en-us/dax/isblank-function-dax 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could create a calculated column using IF() and ISBLANK() function.

https://docs.microsoft.com/en-us/dax/if-function-dax 

https://docs.microsoft.com/en-us/dax/isblank-function-dax 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
lbendlin
Super User
Super User

You do that in Power Query Editor, or in DAX as a calculated column (not as a measure)

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

 

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 MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.