Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Multiple rows but only one Unique ID - need to add to another column and remove the row

$
0
0

I am new to alteryx and have an issue where my data has unique ID's but one of the columns can have multiple values, leading to a duplication of the unique ID in a table.  An example is below:

 

IDRep
1John
1Dave
2Rob
3Scott

 

I need to modify the output so that it comes out like below instead:

 

IDRep1Rep2
1JohnDave
2Rob 
3Scott 

 

Essentially, if it finds that the data has multiple Rep's for any of the unique ID's listed it would add a new column for each rep.  If there are 3 different Reps for any one ID then it would add two additional columns instead of just one and so on.

 

I have been unable to find a way to do this so any help would be appreciated!


Viewing all articles
Browse latest Browse all 4999

Trending Articles