Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

How to make one column comma separated based on duplicates of another

AllTheQuestions
7 - Meteor

Here is my data:

NumbersSKUs
12345685458
123456548473
1234564654312
123456168547
78910549784
78910545647
7891054677324

 

Here is what I want:

NumbersSKUs
12345685458,548473,4654312,168547
78910549784,5647,677324

 

Take out the duplicate "numbers" column to make the SKUs column all comma separated.

 

THANK YOU! 

7 REPLIES 7
MilindG
12 - Quasar

You will need to change the data type. Check out the attached workflow.

IraWatt
17 - Castor
17 - Castor

Hey @AllTheQuestions,

You can take out the duplicates by grouping on both columns in a summarize tool. Then using the Summarize tools concatenate function you can create your output:

IraWatt_0-1661890147455.png

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

DanielG
12 - Quasar

@AllTheQuestions  -- Just use a Summarize Tool where you group by the Number Column and Concatenate the SKUs.  If the SKUs are of a numeric data type, you can just convert it to a string via a Select Tool before summarizing.   Hope this helps.  😀  

DanielG_0-1661890281963.pngDanielG_1-1661890319582.png

 

IraWatt
17 - Castor
17 - Castor

@DanielG I like the l lavender workflow canvas colour 😄! Hope your supporting the Dark Mode - Alteryx Community idea on the community to give more colouring options for Designer.

DanielG
12 - Quasar

@IraWatt  -- thanks.  I needed tranquil color, as my data usually drives me nuts.  Helps balance things out.  haha.  I added a Like to the Ideas page.  Hopefully that is something they can accomplish.  

AllTheQuestions
7 - Meteor

@IraWatt thank you!  I did not know concatenate was an option like this!!  so helpful!

IraWatt
17 - Castor
17 - Castor

No worries @AllTheQuestions 😄 have a good one ! 

Labels