Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Structuring Data from Column to Rows

cjsnets10
6 - Meteoroid

Hello All,

 

I am attempting to restructure my data into a more horizontal format. As you can see from the screenshot below the data is structured where each transaction type is broken out into a different row. I would like to have all the information summed up onto one row. I have been attempting to use some transpose and cross tabs to get my desired output, but have yet to get it.

 

FYI The input Data has already been summarized hence the reason the column labels are "Sum Cost", but I want to receive the Sum of all the Sum cost if that makes sens.

 

Input Data

Month YearProductMethod of PurchaseTransactionSum CostSum DiscountSum NetCount
2020 Q1AppleOnlinePurchased12.376.286.096
2020 Q1AppleOnlineTraded18.939.019.929
2020 Q1AppleOnlineReturned - A0004
2020 Q1AppleOnlineReturned - B0002
2021 Q1AppleOnlineReturned - C0004
2020 Q1AppleOnlinePurchased12.37012.376
2020 Q1AppleOnlineReturned - A0003
2020 Q1AppleOnlinePurchased24.933.9520.989
2020 Q1AppleOnlinePurchased8.994.224.773

 

Desired Output

Month YearProductMethod of PurchasePurchased Sum CostPurchased Sum DiscountPurchased Sum NetPurchased CountTraded Sum CostTraded Sum DiscountTraded Sum NetTraded CountReturned - A CountReturned - B CountReturned - C Count
2020 Q1AppleOnline58.6614.4544.212418.939.019.929724
1 REPLY 1
binuacs
21 - Polaris
Labels