Alteryx Designer Desktop Discussions

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

Rename the old column name with new column name

alt_tush
9 - Comet

Hi,

 

I have one dataset and one Mapping file, example below:-

 

Data 

FNLNSALADRESS
JamesSmith100CALIFORNIA
RobertsWilliam200MAXICO
MichaelBrown300HOUSTON
DavidMillar400NEW YORK

 

Mapping File :-

 

New_ColOld_Col
FIRST_NAMEFN
LAST_NAMELN
SALARYSAL
ADDRESS1ADRESS
ADDRESS2ADRESS
ADDRESS3ADRESS

 

I want to replace the old column name from dataset to new column name which as per mentioned in mapping file.

So my expectation is below 

 

FIRST_NAMELAST_NAMESALARYADDRESS1ADDRESS2ADDRESS3
JamesSmith100CALIFORNIACALIFORNIACALIFORNIA
RobertsWilliam200MAXICOMAXICOMAXICO
MichaelBrown300HOUSTONHOUSTONHOUSTON
DavidMillar400NEW YORKNEW YORKNEW YORK

 

It would be great if you can help me to provide the expected output. As i tried with dynamic rename tool but it wont work if there is duplicate column name.

 

Please assist. Thank you in advance.

6 REPLIES 6
apathetichell
18 - Pollux

dynamic rename. connect your field map via the right anchor.

Felipe_Ribeir0
16 - Nebula

hI @alt_tush 

 

One way of doing this, considering that you have columns on mapping file that will or not will be on the dataset

Felipe_Ribeir0_1-1665158113626.png

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

 

 

binuacs
20 - Arcturus

@alt_tush One way of doing this with the dynamic rename tool as mentioned by @apathetichell 

 

Do want to copy the address field to Address2 and 3?

 

binuacs_0-1665158757664.png

 

alt_tush
9 - Comet

Hi binuacs,

 

Thank you for your prompt reply.

 

Yes, want to copy the address field to Address2 and 3.

And that is not work in dynamic rename tool.

So i need to understand how i can get the expected output.

As dynamic rename tool ignore other entries where new fields Add1,2 &3 mapped with same address field.

 

 

alt_tush
9 - Comet

Hi Felipe_Ribeir0,

 

 

Thank you for your prompt reply.

 

I want to copy the address field to Address2 and 3 as well. As per the output table mentioned in my first post.

And that is not work in dynamic rename tool.

So i need to understand how i can get the expected output.

As dynamic rename tool ignore other entries where new fields Add1,2 &3 mapped with same address field.

 

binuacs
20 - Arcturus

@alt_tush One option is to create the additional columns using a formula tool. If that not works in your case let me know

 

binuacs_0-1665163496618.png

 

Labels