Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Identify Unique Name and Merge/Separate Unique Codes and Join

ssripat3
8 - Asteroid

Hello Community,

 

I have a set of data similar to below. Now, my data has more columns than this. But the action I would like to perform is based on these three columns mainly.

 

NameCode Extracted Code   
FPO-R3TD-1000-AAJ9B,N06,1X2,7PBAVEBP,DR--B,EN-C0,HTHAH,AVEBP,DR--D,EN-C0,HTHAH
FPO-R3TD-1000-AAL0L,T65,1X1,7PBAVEBP,DR--F,EN-C2
FPO-R3TD-1000-AAL0R,T65,1X1,7PBAVEBP,DR--H,EN-C2
FPO-NCRT-9000-AAL0LDR--B,DR--F
FPO-NCRT-9000-AAL0RDR--D,DR--H

 

Now, my objective is to have only unique values in Name Field and the reason for these multiple values is due to the code field.

 

I would like to try to attain either of the two below desired outputs.

 

Output 1

 

In this scenario, I would like to identify the unique "Name" value and append all the data in the "Extracted Code" column using a ";" separator.

 

NameCode Extracted Code   
FPO-R3TD-1000-AAJ9B,N06,1X2,7PBAVEBP,DR--B,EN-C0,HTHAH,AVEBP,DR--D,EN-C0,HTHAH;AVEBP,DR--F,EN-C2;AVEBP,DR--H,EN-C2
FPO-NCRT-9000-AAL0LDR--B,DR--F;DR--D,DR--H

 

Output 2

 

In this scenario, I would like to consider the unique names as a set and then fetch all the values in "Code" column across multiple rows and identify duplicates.

 

For example. the Name field FPO-R3TD-1000-AA has codes as below

 

J9B,N06,1X2,7PB

L0L,T65,1X1,7PB

L0R,T65,1X1,7PB

 

Now, I would like to remove identical values and then create a new column with values similar to the below table.

 

NameCodeFixed Code 
FPO-R3TD-1000-AAJ9B,N06,1X2,7PBJ9B,N06,1X2,L0L,T65,1X1,L0R
FPO-NCRT-9000-AAL0LL0L,L0R
2 REPLIES 2
messi007
15 - Aurora
15 - Aurora

@ssripat3,

 

Please find attached how you can do that 

 

test.PNG

Best,

ssripat3
8 - Asteroid

Thank you for the solution @messi007 

Labels
Top Solution Authors