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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. 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

Dynamically change column headers based on position

Kaseykreid
6 - Meteoroid

Hi all. I have a simple but yet tricky issue I'm trying to figure out. How would I dynamically rename the headers of a dataset to 1,2,3,4,5 based on the position of each of the columns? 

 

For example, I have this dataset that is the output of a python tool:

11.2Unnamed: 0Random TextRandom Text 2Random Text 3
 Hello world123321 
12world Hello987654321

 

The headers of this dataset can be anything. I need to dynamically change those headers to 1, 2, 3, 4, 5 based on where they are positioned like so:

 

12345
 Hello world123321 
12world Hello987654321

 

Any ideas on how I could achieve this?

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@Kaseykreid 
With my favorite Tile tool 😁

0925-Kaseykreid.png

flying008
15 - Aurora

Hi, @Kaseykreid 

 

Another way for you .

 

录制_2024_09_25_15_27_40_146.gif

Labels
Top Solution Authors