Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
GELÖST

Removing duplicate values in each cell

wonka1234
Feuerball

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 ANTWORTEN 12
ShankerV
Castor

hi @wonka1234 

 

Please find the solution.

 

ShankerV_0-1672262206085.png

 

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
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
Feuerball

@Felipe_Ribeir0  

 

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

Hi @wonka1234 

 

You can transpose the dataset before removing the duplicates:

 

Felipe_Ribeir0_0-1672264455637.png

 

EN6924
Feuerball

EN6924_0-1672323070092.png

 

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

Summarize: Concatenate and Separator ";" 

 

htalteryx
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!

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

 

Beschriftungen