We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Group by consectuive Lines and get latest timestamp

listale
6 - Meteoroid

I have the following Demo Dataset:

 

RecordIDProcessTimestampRecipe
1Inlay07.12.2021 07:54A
2Suspension07.12.2021 07:54A
3Suspension07.12.2021 08:09A
4Suspension07.12.2021 09:29A
5Release07.12.2021 09:31A
6Manual Entry07.12.2021 09:40A
7Suspension08.12.2021 05:10A
8Suspension08.12.2021 05:12A
9Inlay08.12.2021 06:00B
10Inlay08.12.2021 07:00B
11Inlay08.12.2021 07:30B
12Suspension08.12.2021 08:00B
13Release08.12.2021 09:00B
14Manual Entry08.12.2021 10:00B

 

What I´m trying to achieve:

Group all same Rows based on column Process which are consectuive (same Process-Name can appear multiple times -> f.e. Suspension on RecordID 2,3,4 and 7,8)

And within each group only keep the last timestamp.

 

Desired Output would be:

 

RecordIDProcessTimestampRecipe
1Inlay07.12.2021 07:54A
4Suspension07.12.2021 09:29A
5Release07.12.2021 09:31A
6Manual Entry07.12.2021 09:40A
8Suspension08.12.2021 05:12A
11Inlay08.12.2021 07:30B
12Suspension08.12.2021 08:00B
13Release08.12.2021 09:00B
14Manual Entry08.12.2021 10:00B

 

Any ideas how to achieve this with Alteryx ?

 

Thanks in advance for any help

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @listale 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1644315362441.png

 

Hope this helps : )

 

listale
6 - Meteoroid

Great, works flawless thanks alot @atcodedog05

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @listale 

Cheers and have a nice day!

Qiu
21 - Polaris
21 - Polaris

@listale 
We can do something like this.

0208-listale.PNG

listale
6 - Meteoroid

also works, thanks @Qiu

Qiu
21 - Polaris
21 - Polaris

@listale 
Glad to help and thank you for the accept mark. 😁

Labels
Top Solution Authors