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
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

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

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors
Top Kudoed Authors