Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to combine data into one cell

clarrock
8 - Asteroid

Hi,

 

I want to combine data in column Asset into one record

Eg heres my input data : 

CodeNameCcyAsset
280

Alex

EURGovt-Spain
280AlexEURGovt-Italy
290PeterGBPCash-EUR
302KeithUSDCash-EUR
438AdamINRGovt-United States
438AdamINRGovt-United States

 

My expected output creates a unique row for each code
Expected output :

CodeNameCcyAsset
280AlexEURGovt-Spain, Govt-Italy
290PeterGBPCash-EUR
302KeithUSDCash-EUR
438AdamINRGovt-United States, Govt-United States

 

Is this possible?

2 REPLIES 2
binuacs
21 - Polaris

@clarrock  Use the summarize tool group by code, name and city, for the asset field select string - concat option

gawa
16 - Nebula
16 - Nebula

hi @clarrock 

You can use Summarize tool like this. By the way, your sample data has duplicated records (row5&6). If you need to remove the duplicated row, put Unique tool before Summarize tool, if this better fits to your case.

image.png

Labels
Top Solution Authors