Alteryx Designer Desktop Discussions

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

Data Cleansing Query

gankita181
5 - Atom

Hi Team,

 

For below data  where I need unique values in output . 

I have used logic is input data -> Text to Column -> Transpose ->Unique -> Concatenate -> Transpose this works in excel but not in Alteryx please suggest 

 

I/PO/P
A,AA
A,B,B,CA,B,C
A,B,C,CA,B,C
A,B,C,D,DA,B,C,D
A,B,C,D,E,EA,B,C,D,E
A,B,C,D,E,F,GA,B,C,D,E,F,G
A,B,C,DA,B,C,D
A,B,C,D,EA,B,C,D,E
A,A,B,B,C,C,DA,B,C,D

 

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @gankita181 ,

 

What you can do in this instance is use a text to columns tool to split all your characters to rows based on "," as a delimiter. Then for each string group, you can remove the duplicate occurrences of a character and then concatenate them back together

 

AngelosPachis_0-1615452857006.png

 

Hope that helps,

 

Cheers,

 

Angelos

Emil_Kos
17 - Castor
17 - Castor

Hi @gankita181,


I have preared a workflow for you.

The last join might not be required it depends if you want to keep the data in the original order:

Emil_Kos_0-1615452995404.png

Output:

 

Emil_Kos_1-1615453019228.png

 

 

 

Labels