We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Problem with transposing rows to columns

Michal_Rakowski
5 - Atom

Hi guys,

 

I am trying to change this:

 

Michal_Rakowski_0-1628810836192.png

 

Into this:

 

Michal_Rakowski_1-1628810857659.png

 

Unfortunately, transposing the input provides me with 2 columns with Name and Value, and all the rows are being saved one by one below each other. Do you have any idea what can I do?

 

Michal_Rakowski_2-1628811238386.png

 

 

4 REPLIES 4
AkimasaKajitani
17 - Castor
17 - Castor

Hi @Michal_Rakowski 

 

Basically Alteryx can't have multi rows header. In this case, we consider "Year" and "Month" rows as Header. So the way is a little difficult.

 

Step 1. I used the Record ID tool to fix the field position.

Step 2. I used the Transpose tool and Crosstab tool into desired output.

Step 3. I used the Text input tool and join to the data stream to sort into the final output.

 

AkimasaKajitani_0-1628826547112.png

 

Please check the attached workflow.

 

Michal_Rakowski
5 - Atom

Thank you @AkimasaKajitani this was very helpful!

atcodedog05
22 - Nova
22 - Nova

Hi @Michal_Rakowski 

 

If the solution author's response helps please don't forget to mark it as a solution.

Cheers and have a nice day!

Michal_Rakowski
5 - Atom

Hi @Atcodedog05 will remember about this 🙂 Thanks!

Labels
Top Solution Authors