Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Choosing latest date and by ID

SH_94
11 - Bolide

Dear community,

 

I have the data set as below and would like to ask how can we use alteryx to choose the latest date for each ID as per screenshot below:

SH_94_0-1647861586038.png

 

I have also attached the excel file below for your reference.

 

Thank you.

 

 

2 REPLIES 2
TheOC
16 - Nebula
16 - Nebula

hi @SH_94 

This should work for you:
Convert dates to datetime

TheOC_0-1647861772625.png



Summarize group by ID, max Date:

TheOC_1-1647861787779.png



The output is slightly off in the example due to the output fields being in your example workflow, but you can see for the input it has worked as expected:

TheOC_2-1647861818134.png



Please find attached.

Cheers,
TheOC

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
binuacs
21 - Polaris

@SH_94 

binuacs_0-1647861998762.png

 

Labels
Top Solution Authors