We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to refer to changing column name

bramvanbaalen
5 - Atom

How do I select a column thats always column 2 but changes in name for the month we're in? Example: in december the name of the column in the excel file would be DEC_EXAMPLECOLUMN, and in january it would be JAN_EXAMPLECOLUMN. How would I make sure that my Alteryx workflow can still select the column despite the first 3 characters changing every month (maybe through using a RIGHT command)? Any help would be greatly appreciated!

4 REPLIES 4
ShankerV
17 - Castor

Hi @bramvanbaalen 

 

I will recommend this TIP/Trick to overcome the issue.

 

ShankerV_1-1675860822877.png

 

 

Many thanks

Shanker V

bramvanbaalen
5 - Atom

Could you provide some more context of what I should fill in the dynamic renaming tool? havent used that before

ShankerV
17 - Castor

Hi @bramvanbaalen 

 

Post all your calculation, you can rename the column dynamically.

ShankerV_0-1675860987857.png

Explaining in detail:

 

Step 1: Your Input file

ShankerV_1-1675861078565.png

 

Step 2:  My Text Input

ShankerV_2-1675861112295.png

 

I have used the Column1 

And column 2 name which will change as Changingcolumn

 

Step 3: When you use the dynamic rename tool, 

the column2 which ever it will be changed to Changingcolumn

 

So you can use those for all calculations, which will be common across the workflow.

 

Many thanks

Shanker V

binuacs
21 - Polaris

@bramvanbaalen One way of selecting the column name based on the current month name is with the help of the dynamic select tool

 

binuacs_0-1675870299498.png

 

Labels
Top Solution Authors