Alteryx Designer Desktop Discussions

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

Transpose rows and columns

Jithesh
6 - Meteoroid

Hello Everyone!

 

I have a table like this;

 

YearMonthTypeTarget 1Target 2
20211Mobile60 
20212Mobile60 
20213Mobile60 
20214Mobile60 
20215Mobile60 
20216Mobile60 
20217Mobile60 
20218Mobile60 
20219Mobile60 
202110Mobile60 
202111Mobile60 
202112Mobile60 
20211Mobile 80
20212Mobile 80
20213Mobile 80
20214Mobile 80

 

I would want to have the table transposed like below, making it a nice table with all the information aligned.

 

YearMonthTypeTarget 1Target 2
20211Mobile6080
20212Mobile6080
20213Mobile6080
20214Mobile6080
20215Mobile6080
20216Mobile6080
20217Mobile6080
20218Mobile6080
20219Mobile6080
202110Mobile6080
202111Mobile6080
202112Mobile6080

 

Thanks in advance!! 

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @Jithesh 

 

You can use transpose and crosstab tool to get the desired output.

 

Workflow:

atcodedog05_0-1611340225950.png

 

Hope this helps 🙂 Feel to ask if you have any questions

 

kelsey_kincaid
12 - Quasar

Hi @Jithesh ,

There are a few different ways to accomplish this. The idea is to separate your records into two groups and then join them back together. Let me know if either of these methods works for you. If not, there are other ways we can try!

 

kelsey_kincaid_0-1611340456757.png

 

Jithesh
6 - Meteoroid

Thanks that was a quick solution 🙂

Jithesh
6 - Meteoroid

Thanks a lot :)!! 🙂

Labels