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

Converting table with Dual Headers into standard table and pivot table

ppatane
8 - Asteroid

I have a poorly setup table that I need to get to a standard table and a pivot table.  The 1st header row contains the year and quarter combined; the 2nd is the month and the 1st column header. It covers 3 years.

 

Upload 1.jpg

 

These are what the output needs to be.  I have done this with power query in Excel but need to now accomplish this in Alteryx.  Getting the pivot table is not as critical as getting the standard table.

 

Upload 2.jpg

2 REPLIES 2
Yoshiro_Fujimori
15 - Aurora

Hi @ppatane ,

 

Here's one way of doing this.

 

Workflow

Yoshiro_Fujimori_0-1683064263944.png

Standard Table

I needed "Month2" to sort the "Totals" table. You may remove with Select tool.

Yoshiro_Fujimori_1-1683064357493.png

 

Totals Table

Yoshiro_Fujimori_3-1683064508731.png

 

geraldo
13 - Pulsar

@ppatane 

 


A workflow example without hardcode
year and quarter fields need to be created separately

 

The other suggestion is excellent @Yoshiro_Fujimori 

Labels
Top Solution Authors