In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Rename a certain column?

Emmm
7 - Meteor

Dear all, 

 

I'm wondering how to rename a certain column? 

I have two different source documents, one may be used randomly at hoc. What is different about these two source documents is that:

  • Source document 1: at column #11, column name is "invoice date";
  • Source document 2: at column #11, column name is "invoice rec'd date". 

I need to rename "invoice rec'd date" to "invoice date" if source document 2 is applied. Not sure how to make the workflow work for both source documents? 

I have tried Select/ Dynamic Select / Dynamic Rename, but did not work :( 

 

Thank you all for helping!!

6 REPLIES 6
flying008
15 - Aurora

Hi, @Emmm 

 

FYI.

 

录制_2024_01_08_16_02_26_779.gif

ed_hayter
13 - Pulsar

If its just one column a conditional formula in dynamic rename should work. if there are more columns i'd recommend a mapping table and renaming from that mapping table.

 

For just one column pic 1 is with the input that doesnt need renaming - nothing changes, pic two has the rename and reflects source document 2:

 

image.pngimage.png

 

The union is just so we can have both inputs flow through the same tool and reflect how it operates on the different inputs

Raj
16 - Nebula

According to me dynamic rename tool is perfect for your requirement.
fi there are issues you can add sample workflow we can debug it for you.

Emmm
7 - Meteor

Thank you Raj!!!!

Emmm
7 - Meteor

Thank you so much @flying008 for your detail explanation!!!!

Emmm
7 - Meteor

Thank you so much @ed_hayter for your detailed demonstration!!!!  

Labels
Top Solution Authors