Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Transpose Multiple Columns

chc10
7 - Meteor

Hi

I'm trying to pull apart some data from multiple columns and transpose it to rows.

 

As Is

DATECATEGORYPURCHASE_VOLUME_4WPURCHASE_VOLUME_12WPURCHASE_VOLUME_52WPURCHASE_VALUE_4WPURCHASE_VALUE_12WPURCHASE_VALUE_52W
11/20/2020COLOGNE15142341611743551117302425731264613
11/20/2020COLOGNE1038737116249886735962628191764439

 

 

To Be

DATECATEGORYPERIOD_GROUPPURCHASE_VOLUMEPURCHASE_VALUE
11/20/2020COLOGNE4W  
11/20/2020COLOGNE4W  
11/20/2020COLOGNE12W  
11/20/2020COLOGNE12W  
11/20/2020COLOGNE52W  
11/20/2020COLOGNE52W  

 

Pls can you help?

Thanks

 

5 REPLIES 5
Qiu
20 - Arcturus
20 - Arcturus

@chc10 

Can you explain the significance of Two repeated Period Time. I summaried them as of now.

1120-chc10.PNG

AkimasaKajitani
17 - Castor
17 - Castor

Hi @chc10 

 

I make workflow.

Please refer attached file.

 

AkimasaKajitani_0-1605845292764.png

 

I use the newest Designer version 2020.4.

If you can't open the attached file, you have to update designer or version down the yxmd file(open by text editor and overwrite version info).

 

T_Willins
14 - Magnetar
14 - Magnetar

Hi @chc10,

 

This should work for your data set.  By using key columns in the Transpose tool and group by data in the Cross Tab you can get the data into the format you are looking for.  The RecordID tool at the beginning keeps each line separate for the Cross Tab tool.

 

Transpose multiple columns.jpg

 

DeanWest
9 - Comet

Here is a proposed solution 😊

 

Multi_Transpose_DeanWest.png

grazitti_sapna
17 - Castor

Hi @chc10,

 

Here is my take on this problem.

 

grazitti_sapna_0-1605864788495.png

 

 

I hope it helps.

 

 

Sapna Gupta
Labels