Alteryx Designer Desktop Discussions

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

Transformation Help

AG21
5 - Atom

Hi community,

 

I have data structured as follows: 

 

Customer IDAttributeMonth 1Month 2Month 3
 Customer 1Amount$6$5$4
 Customer 1Margin2%3%2%
 Customer 1Sale DateDate 1Date 2Date 3
 Customer 2Amount$3$2$1
 Customer 2Margin4%4%5%
 Customer 2Sale DateDate 4Date 5Date 6

 

And need the data in the following format for analysis: 

 

Sale DateCustomerAmountMargin
Date 1 Customer 1 $6 2%
Date 2 Customer 1 $5 3%
Date 3 Customer 1 $4 2%
Date 4 Customer 2 $34%
Date 5 Customer 2 $2 4%
Date 6 Customer 2 $1 5%

 

I've tried doing this with the Tile tool and Transpose tool but can't seem to get it configured right. Ideas would be MUCH appreciated. Thank you. 

3 REPLIES 3
Luke_C
17 - Castor

Hi @AG21 

 

Take a look at this solution. I parse out the sales dates, cross tab the amount/margin, and then join them back. 

 

Luke_C_0-1617059588007.png

 

 

 

AG21
5 - Atom

Luke_C you are my hero.

 

Thank you so much. 

Luke_C
17 - Castor

Happy to help!

Labels