Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Rename all column by adding Input file name as Preffix

AmruthaPydeti
8 - Asteroid

I have 5 different files having multiple column names repeating in each of them. So I wanted to rename columns by appending the filename as prefix. I am unable to do it using Dynamic rename. Is there any alternative?

2 REPLIES 2
marcusblackhill
12 - Quasar
12 - Quasar

Hi @AmruthaPydeti !

 

Try to put in your input data the config to create a field with the "file name only" of the data and then use transpose tool with that field as key.

 

With your new layout of data you can concatenate the file name with the column name and after that you can do a crosstab to return to original layout but now with your file name in the column name too.

 

I hope that help you!

AmruthaPydeti
8 - Asteroid

Hi @marcusblackhill!

 

Thank you! I felt silly after reading your solution 🙂

 

Labels