Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Transform Header description dynmaic

Pascal_R
8 - Asteroid

Hi Community Team,

 

I get weekly sales data (for the past 26 weeks) in attached format with weeks header description.

I need to find a way to have the header changed for always the oldest week like "Sales WK1" etc--> see green headers.

 

Pascal_R_0-1621953772485.png

 

In addition, I need to create a new column which just repeats the "sales weeks used" like: 34.2020-06.2021

a column with the Avr.Abs.Dev per line. 

 

Do you have any suggestion how do to that the most sufficient way?

 

Thank you very much for your support in advance.

 

BR,

Pascal

5 REPLIES 5
mceleavey
17 - Castor
17 - Castor

Hi @Pascal_R ,

 

In tried to make this as dynamic as possible:

 

mceleavey_0-1621954512295.png

 

mceleavey_1-1621954616042.png

 

(I've only done the first five, you can do the rest!)

 

mceleavey_2-1621954645622.png

 

Hope this helps.

 

M.

 

 



Bulien

Pascal_R
8 - Asteroid

@mceleavey 

 

Thank you very much for your solution.

How can you now tell that the first row are the "new" headers?

 

BR,

Pascal

mceleavey
17 - Castor
17 - Castor

Hi @Pascal_R ,

 

I'm sorry, I don't understand what you mean.

 

 



Bulien

Pascal_R
8 - Asteroid

@mceleavey 

 

How can I make now that the yellow row is the new header instead of 1,2,3,4 etc..?

 

 

Pascal_R_0-1621959099372.png

 

mceleavey
17 - Castor
17 - Castor

Ah, of course.

Just put a Dynamic Rename tool at the end and select "Take Field Names from First Row of Data":

 

mceleavey_0-1621959233695.png

 

M



Bulien

Labels
Top Solution Authors