Alteryx Designer Desktop Discussions

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

Removing duplicate values in each cell

wonka1234
10 - Fireball

Hi,

 

Does anyone know how to remove duplicate emails in a cell? 

 

Ie 

 

Email
Louis.Stevens@hotmail.com; Louis.Stevens@hotmail.com; Louis.Stevens@hotmail.com; Ren.Stevens@hotmail.com

 

to become

 

Email
Louis.Stevens@hotmail.com;  Ren.Stevens@hotmail.com

 

and applied for a whole column?

 

Thanks.

12 REPLIES 12
ShankerV
17 - Castor

hi @wonka1234 

 

Please find the solution.

 

ShankerV_0-1672262206085.png

 

Felipe_Ribeir0
16 - Nebula

Hi @wonka1234 

 

One way of doing this

 

Felipe_Ribeir0_0-1672262248434.png

 

dana_mcdonough
Alteryx Alumni (Retired)

Hi @wonka1234 : here is a great resource outlining different approaches to removing duplicates within a cell: Remove-Duplicates-within-a-cell 

Let me know if this helps!

Dana

*updated link* apologies!

ShankerV
17 - Castor

Hi @dana_mcdonough 

 

The Link shared is not working, can you please update the new link. Will help me too.

 

ShankerV_0-1672262501940.png

 

wonka1234
10 - Fireball

@Felipe_Ribeir0  

 

Thank you , this works. But how to apply this across multiple columns without having to repeat this all the time?

Felipe_Ribeir0
16 - Nebula

Hi @wonka1234 

 

You can transpose the dataset before removing the duplicates:

 

Felipe_Ribeir0_0-1672264455637.png

 

EN6924
10 - Fireball

EN6924_0-1672323070092.png

 

Text to columns : Delimiter ";" and split to rows

Summarize: Concatenate and Separator ";" 

 

htalteryx
8 - Asteroid

I have multiple fields (10+ fields) with duplicate values in the cell.  How would you solve?  Is there a better way than copying/pasting ShankerV's solution multiple times on the canvas?  Thanks in advance!

Felipe_Ribeir0
16 - Nebula

Hi @htalteryx 

 

I suggest you to create a new topic showing a dummy sample of how your input/expected output looks like.

 

Felipe_Ribeir0_0-1673003434964.png

 

Labels