Start Free Trial

Alteryx Designer Desktop Discussions

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

Transposing Headers

Arunima_S
7 - Meteor

Hi,

 

I am trying to transpose 3 headers into 3 different columns. 

My input looks like this:

 

  Category 1  Category 2  Category 3  
  Sub-Cate 1Sub-Cate 2Sub-Cate 3Sub-Cate 1Sub-Cate 2Sub-Cate 3Sub-Cate 1Sub-Cate 2Sub-Cate 3
Month YearNet AmtNet AmtNet AmtNet AmtNet AmtNet AmtNet AmtNet AmtNet Amt

 

I want to transpose the Category, Sub Category and Net amount field as:

 

Month YearCategorySub-CateNet Amt
Jan2000Category 1Sub- Cate 1Net Amt
Feb2000Category 1Sub- Cate 2Net Amt
Mar2000Category 1Sub- Cate 3Net Amt
Apr2000Category 2Sub- Cate 1Net Amt
May2000Category 2Sub- Cate 2Net Amt
Jun2000Category 2Sub- Cate 3Net Amt
Jul2000Category 3Sub- Cate 1Net Amt
Aug2000Category 3Sub- Cate 2Net Amt
Sep2000Category 3Sub- Cate 3Net Amt

 

Is there a way to transpose them all at the same time?

 

Appreciate your help!

Thank you

 

 

3 REPLIES 3
AbhilashR
15 - Aurora
15 - Aurora

Hi @Arunima_S, I have put together a sample workflow that helps transform your dataset. The output is similar to what you are looking for but not exact. The raw data didn't have month/year values so for now, I have kept month/year as placeholder text. But the approach should work on your actual dataset.

AbhilashR_0-1594658621088.png

Hope this helps!

 

Arunima_S
7 - Meteor

Worked like a charm! Thanks @AbhilashR 

Inactive User
Not applicable

Just what i was looking for. Thanks for this great answer.

Labels
Top Solution Authors