ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start 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
binu_acs
21 - Polaris

@Maanvendra one way of doing this

image.png

Gumsmenezes
10 - Fireball

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