cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavidCameron
Frequent Visitor

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 @DavidCameron ,

 

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 @DavidCameron ,

 

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
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors