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
16 - Nebula
16 - Nebula

Here you go!

binuacs
20 - Arcturus

@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
13 - Pulsar

similar to @usmanbashir but using sample tool instead of unique

Saravanan13
8 - Asteroid

Thank you it worked

alexnajm
16 - Nebula
16 - Nebula

Happy to help!

Labels