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 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
18 - Pollux
18 - Pollux

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
15 - Aurora

similar to @usmanbashir but using sample tool instead of unique

Saravanan13
8 - Asteroid

Thank you it worked

alexnajm
18 - Pollux
18 - Pollux

Happy to help!

Labels
Top Solution Authors