ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

remove duplicates and add fields

Timetolearn
6 - Meteoroid

Hi Everyone

 

My data for eg has 1file for class Guitar

 

NameClass
JohnGuitar
MikeGuitar
SamGuitar

 

Another file for 

 

NameClass
JohnSoccer
MikeSoccer
MarySoccer

 

I have multiple files that could have duplicates. 

 

I need my output to look like

 

NameClass
JohnGuitar,Soccer
MikeGuitar,Soccer
SamGuitar
MarySoccer
3 REPLIES 3
alexnajm
19 - Altair
19 - Altair

Union the data together, then use a Summarize tool with Group By Name and Concatenate Class!

jrlindem
12 - Quasar

Piggy-backing on @alexnajm's response to help show this visually:

 

jrlindem_0-1762970361292.png

 

I brought in the data, and then created an intentional duplicate.  I added two paths: (1) that uses the Unique Tool to get down to distinct values before concatenating, and (2) another method that uses two Summarize tools to handle the duplicates and then concatenate.  Both paths lead to the same results!

 

Hope this helps, credit to @alexnajm .

 

-Jay

 

Timetolearn
6 - Meteoroid

Thank you !

Labels
Top Solution Authors