In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Renaming column headers dynamically

Alteryxexpert
8 - Asteroid

I have Data like below

 

Item2023_12_312024_01_312024_02_292024_03_312024_04_30
A456566521323623626262626
B7878995559855566612345
C456566521323623626262626
D7878995559855566612345
E456566521323623626262626

 

I need the columns 2023_12_31 and other columns to be renamed as 31-Dec-2023,31-Jan-2024 and so on for all the upcoming columns. How to achieve this?

3 REPLIES 3
SPetrie
13 - Pulsar

A field info tool to get the existing field names. Convert the dates to the format you want and then a dynamic rename tool to update them.

The attached workflow should do what you need.

rename.PNG

DataNath
17 - Castor
17 - Castor

Hey @Alteryxexpert, can also do this directly using the 'Formula' rename mode:

 

DateTimeFormat(DateTimeParse([_CurrentField_],'%Y_%m_%d'),'%d-%b-%y')

 

aaaa.png

SPetrie
13 - Pulsar

I want to change my answer to what @DataNath has. I completely blanked on that. Go with their answer lol. 

Labels
Top Solution Authors