Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Breaking-up start & end DateTime based on Start and End times of other rows

MichielRauws
5 - Atom

Hi there!

 

Unfortunately I have come across a problem I can not solve. Hopefully someone here can help me!

 

I have one dataset, which includes several tasks that are performed partially parallel.
I would like to get rid of parallel tasks, for which I feel like I need to first break-up all tasks so the end of one task is the start of another (without losing any data).

 

As an example, task A is from 01:00-02:00 and task B is from 01:30-02:30, I believe I first need to turn these two tasks into four tasks:

A: 01:00-01:30

A: 01:30-02:00

B: 01:30-02:00

B: 02:00-02:30

 

However, knowing what to do is one thing, I'm not succeeding at doing it.

Any suggestions on how to perform this explosion/break-up of tasks?

 

This is part of the data I'm using:

Task #StartEndPriority
100:00:0001:00:001
200:45:0001:30:003
302:00:0002:30:002
401:00:0003:30:004
503:00:0004:00:002

 

Which I hope to turn into: 

Task #StartEndPriority
100:00:0000:45:001
100:45:0001:00:001
200:45:0001:00:003
201:00:0001:30:003
401:00:0001:30:003
401:30:0002:00:004
302:00:0002:30:002
402:00:0002:30:004
402:30:0003:00:004
403:00:0003:30:004
503:00:0003:30:002
503:30:0004:00:002

 

Below I've added a screenshot of how the broken-up tasks could look like. 

 

MichielRauws_0-1669322257134.png

 

2 REPLIES 2
ArtApa
Alteryx
Alteryx

Hi @MichielRauws - Here is a possible solution:

ArtApa_0-1670042761987.png

 

MichielRauws
5 - Atom

Very clever! Thanks a lot!

Labels
Top Solution Authors