In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Splitting Date Time and Consolidating Records

Steph23
7 - Meteor

Hi all! My dataset currently has 1 field for "Date Time" and another with activity. I'm trying to split the date time field into (1) date and (2) time and then consolidate the records into one record so I can calculate the duration per event (event being open to close timeframe).

 

Current data structure:

Record #Date TimeLocation IDActivity
12022-01-03 17:33:071001Open
22022-01-03 18:52:551001Close
32022-01-05 06:38:231002Open
42002-01-05 07:15:051002Close

 

Trying to get to this:

Prior RecordsDateLocationOpen TimeClose TimeDuration
1 & 21/3/2022100117:33:0718:52:5501:19:48
3 & 41/5/2022100206:38:2307:15:0500:36:42

 

Does anyone know how to do this? Thanks in advance!!

10 REPLIES 10
atcodedog05
22 - Nova
22 - Nova

Hi @Steph23 

 

My take on this

 

Workflow:

atcodedog05_0-1642661801992.png

 

Hope this helps : )

 

Labels
Top Solution Authors