Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Transpose Multiple Columns into Repeating Rows

YLYONG
9 - Comet

Hi All,

 

I have a data set that looks like this:

 

 Type  Subsystem 27/06/20224/07/202211/07/2022
 Wood  ABC             8,122         8,151            8,152
 PVC  ABC                102               85               223

 

To be converted into this:

 

 Type  Subsystem  Week  Value 
 Wood  ABC 27/06/2022         8,122
 Wood  ABC 4/07/2022         8,151
 Wood  ABC 11/07/2022         8,152
 PVC  XYZ 27/06/2022             102
 PVC  XYZ 4/07/2022               85
 PVC  XYZ 11/07/2022             223

 

I used "Arrange" but it doesn't seem to arrange the table correctly.

YLYONG_0-1638964573660.png

 

 

Thank you for your assistance.

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @YLYONG,

 

You could use the transpose tool to pivot your column headers to row labels:

 

JonathanSherman_0-1638964879666.png

 

 

I've attached my workflow for you to download if needed!

 

Kind regards,

Jonathan

Jonathan-Sherman
15 - Aurora
15 - Aurora

In terms of configuring the transpose tool itself there are two sections, Key Columns and Data Columns. Tick fields in the Key Columns section to tell Alteryx not to pivot the fields, this should untick the fields from the Data Columns section (but do always check this is the case!)

 

JonathanSherman_0-1638965024552.png

 

 

Kind regards,

Jonathan

Labels
Top Solution Authors