Alteryx Designer Desktop Discussions

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

Transpose/Cross Tab Question

BrianDeg
5 - Atom

Hello! I am looking for some help with what combination of transpose and cross tabs I would need to take the input data and transform to the output data. I also understand there may be an issue with duplicate column headers... is this something that can be handled within alteryx? Would of course appreciate a solution that can work for multiple years of data. Appreciate your help in advance. 

Input:

NameCompany #SalesCostsTaxesSalesCostsTaxes
Year 201820182018201920192019
Company 112315010081651108
Company 24562251751124819312
Company 37893432121737723319

 

Desired Output:

YearNameCompany #Account Name Value
2018Company 1123Sales150
2018Company 1123Costs100
2018Company 1123Taxes8
2018Company 2456Sales225
2018Company 2456Costs175
2018Company 2456Taxes11
2018Company 3789Sales343
2018Company 3789Costs212
2018Company 3789Taxes17
2019Company 1123Sales165
2019Company 1123Costs110
2019Company 1123Taxes8
2019Company 2456Sales248
2019Company 2456Costs193
2019Company 2456Taxes12
2019Company 3789Sales377
2019Company 3789Costs233
2019Company 3789Taxes19
2 REPLIES 2
Aaron_Harter
11 - Bolide

Hi @BrianDeg

 

I would recommend reading in the data with generic field headers, then splitting the data into separate streams to isolate the header values before transposing and joining back together into your desired format:

2.PNG  

SamYX
7 - Meteor

SamYX_1-1670782139133.png

 

 

 

Labels