Alteryx Designer Desktop Discussions

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

Dynamic Rename of Headers

hemant86
11 - Bolide

Hi Team,

 

I want to rename my headers dynamically. For current financial year the headers are as below

 

MinWage_4/1/2021MinWage_5/1/2021MinWage_6/1/2021MinWage_7/1/2021MinWage_8/1/2021MinWage_9/1/2021MinWage_10/1/2021MinWage_11/1/2021MinWage_12/1/2021MinWage_1/1/2022MinWage_1/2/2022MinWage_1/3/2022

 

I want the headers should change to as below dynamically for next financial year. Basically only the year is changing and rest of the header remains same.

 

MinWage_4/1/2022MinWage_5/1/2022MinWage_6/1/2022MinWage_7/1/2022MinWage_8/1/2022MinWage_9/1/2022MinWage_10/1/2022MinWage_11/1/2022MinWage_12/1/2022MinWage_1/1/2023MinWage_1/2/2023MinWage_1/3/2023

 

Appreciate any help. Thanks in advance.

18 REPLIES 18
hemant86
11 - Bolide

I have attached sample file with original Input headers and what I'm doing currently.

Sample workflow.

hemant86_0-1645116992593.png

 

binuacs
20 - Arcturus

@hemant86  I used your input file to generate the heading dynamically in different ways

 

binuacs_0-1645119429776.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

My take on this

 

atcodedog05_0-1645119888706.png

 

Hope this helps : )

 

hemant86
11 - Bolide

Thanks @atcodedog05 . i see you are fixing the headers here to 04/01/2020,05/01/2020,...etc and so on. The Input file wont be having these. Please see the attached workflow what will be the exact headers after renaming. Can anything be done around that. Thanks Again in advance.

atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

Try this

 

atcodedog05_0-1645171170240.png

 

Hope this helps : )

 

hemant86
11 - Bolide

Thanks @atcodedog05 . Not sure if I'm correct. But is this going to work for the Next Financial Cycle which will start from 04/01/2022?

From 04/01/2022 the headers should dynamically change to below:

Min Wage_4/1/2022Min Wage_5/1/2022Min Wage_6/1/2022Min Wage_7/1/2022Min Wage_8/1/2022Min Wage_9/1/2022Min Wage_10/1/2022Min Wage_11/1/2022Min Wage_12/1/2022Min Wage_1/1/2023Min Wage_2/1/2023Min Wage_3/1/2023
atcodedog05
22 - Nova
22 - Nova

Hi @hemant86 

 

Try this I have setup a condition to check the month and change the year.

 

atcodedog05_0-1645174710314.png

 

Hope this helps : )

 

 

 

hemant86
11 - Bolide

Thanks @atcodedog05 . This is amazing. This will do the job for me. 🙂

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @hemant86 

Cheers and have a nice day!

Labels