Alteryx Designer Desktop Discussions

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

Max Record based on Date

JDong
8 - Asteroid

Hello Team @atcodedog05 ,

 

Please refer to this sample dataset from my overall data

 

Last Modified ByLastModifiedDateCompany
Jack09.12.2020 07:46ABC Tech
Jack11.12.2020 14:35ABC Tech
Peter21.12.2020 06:15FDE Auto
Winson30.10.2020 12:15HIC Fenster
Blake30.10.2020 12:15IRT Iron
Winson14.12.2020 10:11HIC Fenster

 

 

I need to retreive one line of record and group the records based on max of modified date

 

So end result in this case would be 

 

Last Modified ByLastModifiedDateCompany
Jack11.12.2020 14:35ABC Tech
Peter21.12.2020 06:15FDE Auto
Blake30.10.2020 12:15IRT Iron
Winson14.12.2020 10:11HIC Fenster

 

Can you please advise with how this can be achieved in Alteryx.

 

Thanks

13 REPLIES 13
JDong
8 - Asteroid

Hi @Emil_Kos 

 

Please refer to the below extended data source

 

Last Modified ByLast Modified DateCompanyOwnerModifier
Jack09.12.2020 07:46ABC TechABCApple
Jack09.12.2020 07:52ABC TechABCAdam
Peter21.12.2020 06:15FDE AutoABCNokia
Winson14.12.2020 12:15HIC FensterDEFSamsung
Blake30.10.2020 12:15IRT IronDEFTurtle
Winson14.12.2020 10:11HIC FensterGHISiego
Blake30.10.2020 12:13IRT IronGHIDemir

 

When I see these additional columns and still the output needs to be on max date and time.

 

Please note the updates colored.

 

Thanks

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

I would use summarize in order to show max time and company name. Afterwards, I would join the data with the data set.

 

It is really easy and it should work for your big multiple column file. 

 

Emil_Kos_0-1610920532791.png

 

JDong
8 - Asteroid

@Emil_Kos 

 

In my use case there are multiple owner names for every company and hence it is not grouping I guess ?

 

It still shows multiple rows and surely different values for owner column. Is there a way to ensure based on modified date to pick the corresponding owner and modifier.

 

Thanks

Emil_Kos
17 - Castor
17 - Castor

Hi @JDong,

 

This solution will work for you. You just need to pick columns that you think they are final. 


If you still have problems provide a bigger data set with expected output and someone will definitely help you. 

Labels