Alteryx Designer Desktop Discussions

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

Concating every duplicate record

Alteryxuserhere
8 - Asteroid

Hi All

I have the following dataset

IDFoodExpiry Date
12345Tomato12 Jan
67890Potato23 Dec
53235Cauliflower8 Aug
12345Pizza6 June


How do I concat the Food and Expiry Date Collumn together so I can create a new collumn based on the ID and have the Expiry Date and Food collumn merged together per ID value?  and then sort the concated values by order of date?

So i want to create something like the below

 

 

IDFoodExpiry DateConcated Values
12345Tomato12 Jan12 Jan_Tomato | 6 June_Pizza
67890Potato23 Dec23 Dec_Potato
53235Cauliflower8 Aug8 Aug_Cauliflower
12345Pizza6 June12 Jan_Tomato | 6 June_Pizza


Thanks in advance!

3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Alteryxuserhere you can you the summarise tool to concatenate your data then use the join tool to join the concatenated date back onto your orginal data. I have mocked up an approach which shows this.

 

Concatenate_18012024.JPG

Alteryxuserhere
8 - Asteroid

Many thanks @JosephSerpis , can you explain the purpose of the record ID step? 

JosephSerpis
17 - Castor
17 - Castor

Hi @Alteryxuserhere that is to sort your data back to what it looked like from the input. 

Labels