ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Unique Column Headers

skotian1289
8 - Asteroid

Hi All,

 

I know this could be a simple solution but I need help as I am quite new to Alteryx.

 

My input file has 100s of column headers and some column headers are repeated multiple times. I want to give a unique numbers to each column headers because I want to reconcile them. In excel I am able to perform that step by using the below formula.

 

A2&"/"&COUNTIF(A$2:A2,A2)          (A2 value being 1)

 

See sample of what I am trying to achieve in alteryx, let me know if anyone can help me

 

Input File Column headers:

 

Blue     Green    Red   Blue    Red   Blue   Yellow    Green

 

Expected Resuts:

 

Blue/1     Green/1    Red/1    Blue/2    Red/2    Blue/3    Yellow/1    Green/2

 

Thanks

24 REPLIES 24
atcodedog05
22 - Nova
22 - Nova

Renaming is solved.

vizAlter
12 - Quasar

@skotian1289 — Now, try this one based on your sample file:

 

vizAlter_0-1601372668611.png

 

 

vizAlter
12 - Quasar

@skotian1289 — (FYI) Alteryx has very good interactive sessions about RegEx Learning too.

atcodedog05
22 - Nova
22 - Nova

_

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @skotian1289 

Labels
Top Solution Authors