Alteryx Designer Desktop Discussions

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

Extracting next soonest date from sub-selection of data

Saraphas
5 - Atom

Hi Everyone, 

 

I have tabular data, where each row refers to a particular milestone for a given project, and I am trying to create a column that is replicated on all the rows which indicates what the next milestone is, and what type of milestone that is.

 

The milestones are consistent across all projects, so what I would like to do use today's date as a reference, search for the next soonest date and then probably use a join to look for Project ID + that date to find the milestone 

 

Below is an example output - the first three columns are inputs, and the final two are the onest that I'd like to end up with. I have been playing around with Cross tabbing the data, but to no avail. 

 

Would be super grateful for any input available! I'm not sure whether this is something that's very simple, that I can't figure out, or if it's complex... 

 

Many Thanks!

Sara, 

 

ProjectMilestoneDateNext Milestone TypeNext Milestone Date 
1Prep28/09/2018Completion06/11/2020
1Staging16/01/2019Completion06/11/2020
1Pre-prep06/05/2019Completion06/11/2020
1Run24/08/2019Completion06/11/2020
1Launch12/12/2019Completion06/11/2020
1Process31/03/2020Completion06/11/2020
1Checking in 19/07/2020Completion06/11/2020
1Completion 06/11/2020Completion06/11/2020
1Sign off24/02/2021Completion06/11/2020
1Close14/06/2021Completion06/11/2020
2Prep28/11/2018Run24/10/2020
2Staging18/03/2019Run24/10/2020
2Pre-prep06/07/2019Run24/10/2020
2Run24/10/2019Run24/10/2020
2Launch11/02/2020Run24/10/2020
2Process31/05/2020Run24/10/2020
2Checking in 18/09/2020Run24/10/2020
2Completion 06/01/2021Run24/10/2020
2Sign off26/04/2021Run24/10/2020
2Close14/08/2021Run24/10/2020
3Prep28/07/2018Sign Off24/12/2020
3Staging15/11/2018Sign Off24/12/2020
3Pre-prep05/03/2019Sign Off24/12/2020
3Run23/06/2019Sign Off24/12/2020
3Launch11/10/2019Sign Off24/12/2020
3Process29/01/2020Sign Off24/12/2020
3Checking in 18/05/2020Sign Off24/12/2020
3Completion 05/09/2020Sign Off24/12/2020
3Sign off24/12/2020Sign Off24/12/2020
3Close13/04/2021Sign Off24/12/2020

 

2 REPLIES 2
Greg_Murray
12 - Quasar

Here you go! 

Greg_Murray_0-1603121218686.png

 

Saraphas
5 - Atom

Thank you this works perfectly! 

 

Labels