Free Trial

Alteryx Designer Desktop Discussions

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

Rearranging Rows into Columns and Columns into Rows

Irene1
5 - Atom

Hi all,

 

I am looking to change the way my data is structured. Can someone help me by directing me to an appropriate thread or helping with the below, please? Thank you,

 

I currently have a file that looks like this: 

 

LocationMonthRetail RevenueWholesale RevenueRetail CostsWholesale Costs
PeruJan100.5480.950.6120.9
ArgentinaJan350.7560.293.3170.6
GuatemalaJan209.2300.225.066.9
Peru Feb120.5667.669.510.1
ArgentinaFeb400.6524.445.851.5
GuatemalaFeb201.3369.270.698.1
PeruMar99.5350.210.568.8
ArgentinaMar360.4295.078.677.9
GuatemalaMar300.2452.312.125.6

 

I would like to rearrange it to the structure below, so that I can then create an output with 4 different tabs (one for each product) that displays the amounts by month by location. I don't need assistance with the output creation, just the rearranging of the data. Thank you.

 

LocationProductJanFebMar
PeruRetail Revenue   
PeruWholesale Revenue   
PeruRetail Costs   
PeruWholesale Costs   
ArgentinaRetail Revenue   
ArgentinaWholesale Revenue   
ArgentinaRetail Costs   
ArgentinaWholesale Costs   
GuatemalaRetail Revenue   
GuatemalaWholesale Revenue   
GuatemalaRetail Costs   
GuatemalaWholesale Costs   

 

Thanks for the help,

 

Irene

2 REPLIES 2

Hi @Irene1 

 

Is this what you are looking for?

 

christine_assaad_0-1604434314217.png

 

Irene1
5 - Atom

That's it, Christine. Many thanks for such a quick response 🙂

Labels
Top Solution Authors