Alteryx Designer Desktop Discussions

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

Cohort: Pivot Table to show the first few months of a new transaction

jmorris24
7 - Meteor

So I have this data that I have grouped by starting quarter for the fiscal year:

 

Sales OrderAccount NameStart DateEnd DateOrder TypeAmountClassStarting Quarter
1111XYZ Corp1/15/151/15/18New25000SoftwareQ4 FY2016
1111XYZ Corp1/15/151/15/18New5000Hardware SupportQ4 FY2016
1112The Best Company4/15/134/15/16New50000SoftwareQ1 FY2014
1113The Best Company8/16/134/15/16Reorder65000SoftwareQ1 FY2014
1114The Best Company4/16/164/16/19Renewal115000SoftwareQ1 FY2014
1114The Best Company4/16/164/16/19Renewal5000Hardware SupportQ1 FY2014
1115The honest company8/15/158/15/18New100000SoftwareQ3 FY2016
1116The honest company12/13/168/15/18Reorder80000SoftwareQ3 FY2016

 

I am trying to get it into this format:

 

Months into contract   
Starting QuarterO123
Q1 FY201450,000 65,000 
Q2 FY2014    
Q3 FY2014    
Q4 FY2014    
Q1 FY2015    
Q2 FY2015    
Q3 FY2015    
Q4 FY201525000   
Q1 FY2016    
Q2 FY2016    
Q3 FY2016100000  80000
Q4 FY2016    
Q1 FY2017    

 

How do I do it? I don't even know where to begin...

2 REPLIES 2
BrandonB
Alteryx
Alteryx

I think it would be helpful for you to define the "Months into contract" as this is a new metric that must be calculated as part of this transformation. You will most likely need to use some formulas that look at the difference between two dates using the DateTimeDiff function in Alteryx to compare the start date of a contract as it relates to the starting quarter value. Then once you make this calculation you can simply crosstab it and get the "Months into contract" as your new column headers. 

 

 

 

Months into contract.png

Months into contract 2.png

 

jmorris24
7 - Meteor

Hey Brandon,

 

Sorry for my delayed response. While your answer didn't fully answer it it was the catalyst for me getting unstuck. I hadn't used the cross tab yet but this helped me understand how to use it.  I really appreciate it!

 

Cheers!

Jesse

Labels