Free Trial

Alteryx Designer Desktop Discussions

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

Want to get all the records at patient level with the latest date

Maanvendra
6 - Meteoroid

I have data as below, I want to select all the records for the particular id having date as latest
Input

patient_idprovider_iddiagnosis_codeservice_date
1AH25.81204-06-2024
1AH25.81204-06-2024
1AH25.81204-06-2024
1AH25.81319-03-2024
1AH25.81319-03-2024

 

Output

patient_idprovider_iddiagnosis_codeservice_date
1AH25.81204-06-2024
1AH25.81204-06-2024
1AH25.81204-06-2024

 

This is just the partial data, but the main ask is to get all the latest date records wrt to each patient id.

This is required a little urgently.

 

Thanks

3 REPLIES 3
binuacs
21 - Polaris

@Maanvendra one way of doing this

image.png

Gumsmenezes
9 - Comet

Hi Maanvendra!  This should work for you :)

Maanvendra
6 - Meteoroid

Thanks for the quick reply both of you,
Both the solution are acceptable and give the required output

Labels
Top Solution Authors