Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Combine Two Columns Date

shawn_23
6 - Meteoroid

I need help combining the two columns Date Time Out and Date Time Out 22 when there is a null in Date Time Out with the Date Time Out 22 Information. 

4 REPLIES 4
BS_THE_ANALYST
14 - Magnetar

@shawn_23 any chance you could include the dataset in your workflow? (if it's not sensitive information). Or provide a sample dataset. It's not included in your .yxmd file.

 

shawn_23
6 - Meteoroid

This is the data set and it came from http://www.planecrashinfo.com/database.htm 

binuacs
21 - Polaris

@shawn_23 Use the below formula to convert the given date in to Date Type

IIF(Contains([Date], '-'),DateTimeParse([Date],'%Y-%m-%d'),IIF(REGEX_Match([Date], '\d+.*\d{4}$'),DateTimePArse(REGEX_Replace([Date], '[^ -~]', ''),'%d%b %Y'),Null()))

 

binuacs_0-1678230720545.png

 

shawn_23
6 - Meteoroid

Wow thank you it worked. I appreciate the help my team could not figure this out either. 

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels