Alteryx Designer Desktop Discussions

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

Solutions for removing duplicate column

colling
6 - Meteoroid

Hi everyone!

 

I hope you get a nice day today.

 

I post this question for solving problems what I faced.

 

When importing duplicated column in alteryx, sequence numbers are automatically allocated.

For example

 

in excel

 JohnJohn
1AD
2BE
3CF

 

in Alteryx

 JohnJohn2
1AD
2BE
3CF

 

It doesn't matter when I just use those format, but if I use 'transpose' component duplicate column become completely different data. I want to recognize two headers with the same name as homogeneous data, is there any solution?

 

Output

 NameValue
1JohnA
2JohnB
3JohnC
4John2D
5John2E
6John2F

 

Target output

 NameValue
1JohnA
2JohnB
3JohnC
4JohnD
5JohnE
6JohnF
2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @colling 

 

Use a formula like this after transposing.

 

TrimRight([Name],"123456789")

 

atcodedog05_0-1643643924535.png

 

Hope this helps : )

 

messi007
15 - Aurora
15 - Aurora

@colling,

 

Please see below

 

messi007_0-1643643940862.png

 

Attached the workflow,

Regards,

 

Labels