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 Early 2026. 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

Move multiple rows to column headers

DGK1981
7 - Meteor

Good afternoon all,

 

I have a data set that i would like to reformat (attached).  I would like to replicate the pivot table in sheet 2 by making row data column data.

 

Any help would be greatly appreciated.

 

Many thanks.

 

David.

 

4 REPLIES 4
DavidP
17 - Castor
17 - Castor

Something like this?

 

DavidP_0-1586329815007.png

 

DGK1981
7 - Meteor

Hi David,

 

Thank you.  I also wanted the Cost Centre along the top too.  Is this possible?

 

David.

 

DavidP
17 - Castor
17 - Castor

The way I created the columns is to add the fields together that you want included, so to include Cost Center, the [Column] field before the CrossTab becomes:

 

tostring([Cost Center])+'_'+tostring([Year])+'_'+padleft(tostring([Month]),2,'0')

 

Padleft is used to make sure the months appear in the right order.

 

DavidP_0-1586339026166.png

 

DGK1981
7 - Meteor

Perfect, thanks very much.  Handy formula there!

Labels
Top Solution Authors