Alteryx Designer Discussions

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

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!

How to Retain Values in One Row and Remove The Duplicates in Other Rows

5 - Atom

I have data looks like this:




For each row, I would like to compare the data across columns. If there are duplicates in later columns, I would like to keep the first value and then remove other duplicates in the later columns. The highlighted values mean there are duplicates in each row but different columns. The yellow highlighted values are the ones to keep, and the red highlighted values are the ones to remove.


The expected result should look like:


1s-lightscasualsbungee-shoes hook-and-loop-shoes light-up-shoessneakers   
2usa-casualscasualscomfort-shoesdress-casualsloafers slip-on-shoes    
3s-lightscasualslace-up-shoes light-up-shoessneakers     


I really appreciate if someone can show me how to do this type of cleanup in Alteryx!

8 - Asteroid

Are you trying to retain the column order and the blank fields? I think a transpose, unique, and a crosstab tool should do the trick.



5 - Atom

Hi @acastelazo preferably retain the column order, and I can lose the blank fields. I think it would work for me even if the column order is different.

5 - Atom

Thank you for your guidance! This solution works 🙂