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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors