Alteryx Designer Desktop Discussions

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

Transposing Data Across Multiple Rows To a Single Column

Brytsyt
7 - Meteor

Hi All,

 

Currently working on a piece that should take the information given and output the data into a very specific format - Idea is to ensure all item names for an individual are on one row and the item values are shown below. Issue is within the file there are multiple item names, values and all for multiple people. I have included a basic test table below to better visualise what I am dealing with (have also added some test data in the format of an excel file):

 

Data Currently:

 

NameDateItems_1Items_2Items_3Items_4
Person 111/01/2019Item Name 1Item Name 2  
Person 111/01/2019300040000  
Person 208/02/2019Item Name 1Item Name 2Item Name 3Item Name 4
Person 208/02/2019650001000200900

 

How I need to get the data in:

NameItemsJanuaryFebruaryMarch etc (Months of year across here)
Person 1Item Name 13000  
Person 1Item Name 240000  
Person 2Item Name 1 65000 
Person 2Item Name 2 1000 
Person 2Item Name 3 200 
Person 2Item Name 4 900 

 

I have tried to create record ID's and then transpose / cross-tab from there however it always becomes an issue that in the original data set the item names are in across the rows in the data but not a part of the header.

 

Any help would be fantastic and I'm looking forward to any advice,

 

All the best,

B

2 REPLIES 2
afv2688
16 - Nebula
16 - Nebula

There you go!

 

Cheers

Brytsyt
7 - Meteor

This worked fantastically!

 

Thank you so much.

B

Labels