Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Update column title

kauser
8 - Asteroid

Hello, 

how can i update column title into specific title "Account". every time i upload new data into my workflow will change the column title but one column need to consistent "Account". Based on example below i use dynamic select tool to pick column 2([FieldNumber=2]) and now need to change this title into "Account" 

 

Month 1 input data 

 

month item amount
1a10
2b20
3c24
4d56

 

Month 1 expected Output 

 

month Accountamount
1a10
2b20
3c24
4d56

 

 

Month 2 input data 

 

ProductSeriesamount
A1AA10
B1BB20
C1CC24
D1DD56

 

 

Month 1 expected Output 

 

ProductAccountamount
A1AA10
B1BB20
C1CC24
D1DD56
4 REPLIES 4
caltang
17 - Castor
17 - Castor

This is a fun challenge! I have attached how I would do it.

 

image.png

 

If you want to maintain the data type, you can go further with the field info and also dynamic replace later on.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
binuacs
21 - Polaris

@kauser another way of doing this

image.png

OTrieger
13 - Pulsar

@kauser 
Another way will be to create a mapping file that indicate what is the source headers and the target headers. In this way you can have all the options in one place and then using one Dynamic Renaming tool will do the job.

 

That mapping file can be external file, that will give you even more flexibility to add new headers if in the future new versions will exist.

Spainey
9 - Comet

@kauser This is similar to @caltang's answer, but removes a couple of tools and makes use of another function of the Dynamic Rename tool to "Take Field Names from Right Input Rows". You just have to specify the Old Field Name Column and the New Field Name Column and it works like a Find/Replace.

image.png

 

Labels
Top Solution Authors