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.
SOLVED

Transforming data from vertical to horizontal

dunkindonut7777
8 - Asteroid

Hi I have a data here that presented vertically and I want it to arranged it according to the following:

 

Data:

CodePeriodTotal
123231100
1232324350
123233132
12323434
123235435
123236453
12323743
43243145
432432455
43243354
43243454
43243553
4324364
43243742
56567143
56567243
56567343
56567442
56567543
56567643
56567743

 

Expected output:

Code1234567
1232310043501323443545343
4324345455545453442
5656743434342434343

 

Basically, I want the values under period column to be the header also.

Can you help me with his one pls?

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @dunkindonut7777 

 

You can use crosstab tool like this

 

atcodedog05_0-1643268124661.png

 

Hope this helps : )

 

RolandSchubert
16 - Nebula
16 - Nebula

Hi @dunkindonut7777 ,

 

the Cross Tab tool is your friend to solve the problem:

 

2022-01-27_08-20-49.jpg

 

You group data by code (i.e. rows), define period as the columns and are done.

 

Let me know if it works for you.

 

Best,

 

Roland

dunkindonut7777
8 - Asteroid

yes it worked. thank you

Labels