In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

Alteryx Designer Desktop Discussions

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

How to get the value based on Max date

Niru
8 - Asteroid

Hello All,

 

how to get the latest updated value from based on Max Date, kindly help me

 

IDValueDate
10143598.821/8/2021 14:13
101435991/9/2021 14:13
1014351001/10/2021 14:13
1014361001/8/2021 14:13
101436881/10/2021 14:13
1014361001/8/2021 14:13
115564961/13/2021 10:16
11556498.441/12/2021 10:16
1165451001/12/2021 11:16
11654599.221/14/2021 10:16

 

Expected output:

 

IDValueDate
1014351001/10/2021 14:13
101436881/10/2021 14:13
115564961/13/2021 10:16
11654599.221/14/2021 11:16

 

Thanks

Niru

7 REPLIES 7
Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @Niru ,

 

Here is a workflow including the logic. The goal is to sort your dates for each ID then pick the first one.

Also your date field needs to be converted to Date Type.

 

Cheers,

 

Jean-Baptiste

afv2688
16 - Nebula
16 - Nebula

Hello @Niru ,

 

You can achieve this with a summarize and join tool easily 🙂

 

Regards

Emil_Kos
17 - Castor
17 - Castor

Hi @Niru,

 

I have preared a workflow for you:

Emil_Kos_0-1612792381065.png

The output:

 

Emil_Kos_1-1612792390519.png

Just to let you know there is a max value in the summarize tool. This option is very handy in a situation like this. 

Emil_Kos_2-1612792426226.png

 

 

 

Niru
8 - Asteroid

@Emil_Kos  thank you, i got the expected output. 

Niru
8 - Asteroid

@Jean-Balteryx Thanks for your reply, 88 value is missing from output

Niru
8 - Asteroid

@afv2688 

Thanks you very much, 88 value is missing from output

Jean-Balteryx
16 - Nebula
16 - Nebula

@Niru, I get the 88 in my output. Did you apply well the group by option of the Sample Tool ?

Labels
Top Solution Authors