Start Free Trial

Alteryx Designer Desktop Discussions

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

How to dynamically rename columns based on a year value in another field

RadoslawK
5 - Atom

Hi everyone,

 

I would like to dynamically rename a field based on a year that is provided in another field called "Month". 

Most field names in my case have a default placeholder names e.g. F37, F38 etc.  

 

This is the input example

Screenshot 2023-07-28 140025.png

 

So the function in Dynamic Rename block should work in this way:

 

1. It takes a year from the date field it will be 'Month' field in this case

2. Converts the year to a string 

3. Places the year string in a Field name in this format  [YEAR] Client

 

'Client' part in the field name can he hard-coded into the formula. 

 

Finally, this is how the output should look like:

 Screenshot 2023-07-28 140025.png

 

I was trying to use the dynamic rename functionality in Alteryx Designer but I am not able to find a solution to that problem. 

Can anyone help

 

Kind regards 

2 REPLIES 2
FinnCharlton
13 - Pulsar

Hi @RadoslawK , you can do it like this:

Screenshot 2023-07-28 132502.png

Hope this helps!

RadoslawK
5 - Atom

Thank you very much. This is very helpful!

Labels
Top Solution Authors