Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Changing a Column Name based on it's location

bdroberts77
5 - Atom

Hi, I'm trying to find a solution for changing a column name based on it's location.

 

In this example I have 3 columns in an input each month whose name changes based on the month.  It's a forecast for the next 3 months.  

 

In August, the Columns were named September, October and November.  These 3 columns are always in the same location.

 

In order to not have to change the input file before adding it to Alteryx, I'd like to be able to have my workflow change it to Month 1, Month 2, and Month 3.

 

Is this possible?

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @bdroberts77 ,

 

You can use a dynamic rename tool to do that. I have created one sample file for August (containing Sep, Oct and Nov) and one for September (containing Oct, Nov and Dec) to prove the concept behind this workflow.

 

AngelosPachis_0-1663793826855.png

 

Hope that works for you.

 

Cheers,

Angelos

 

markcurry
12 - Quasar

Hi @bdroberts77 

 

See the attached workflow, I think this will give you what you're after.  I'm presuming that the data in your input file will be in the correct order.   Hope it helps.

 

Mark

Labels
Top Solution Authors