Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Group a column and retain min date row only

Saravanan13
8 - Asteroid

Hello,

 

I want to group column "ID" and retains only rows which has min date as shown in output. Can anyone assist on this

 

 

Input

 

AccountIDdatebranchstatusCountry
12345661004/20/2024ABCSuspendUSA
12345671004/15/2000CDECancelUSA
12345701004/26/2022FGHCancelUSA
12345611004/26/2001IJKCancelUSA
7892004/26/2024FADASCancelUK
7892004/26/2024ASDFACompleteUK
7892004/20/2023ERGQCompleteUK
7892004/26/2022FAAFDCompleteUK

 

Output

 

AccountIDdatebranchstatusCountry
12345671004/15/2000CDECancelUSA
7892004/26/2022FAAFDCompleteUK

 

6 REPLIES 6
alexnajm
17 - Castor
17 - Castor

Here you go!

binuacs
21 - Polaris

@Saravanan13 One way of doing this

image.png

usmanbashir
11 - Bolide

@Saravanan13 - Please see attached workflow. I like using a sort then unique tool in use cases like these. Unique tool always takes the first record of the selected unique column field. Hope this helps!

aatalai
14 - Magnetar

similar to @usmanbashir but using sample tool instead of unique

Saravanan13
8 - Asteroid

Thank you it worked

alexnajm
17 - Castor
17 - Castor

Happy to help!

Labels