Alteryx Designer Desktop Discussions

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

How to tell Alteryx to group by fields, sum the totals, then output into several files?

danielstefanng
7 - Meteor

Hi,

 

I have the following data set below. Please note that the dates are in dd-mm-yyyy format.

 

NameDateTotal Fee Excl GSTTotal Fee Incl GST
Person 123/07/2018740814
Person 13/09/2018740814
Person 16/09/2018740814
Person 122/10/201814601606
Person 123/10/20189501045
Person 124/10/20189501045
Person 125/10/201810401144
Person 213/08/2018415456.5
Person 213/08/2018325357.5
Person 214/08/2018415456.5
Person 214/08/2018325357.5
Person 215/08/2018415456.5
Person 215/08/2018325357.5
Person 216/08/2018415456.5
Person 216/08/2018325357.5
Person 33/09/2018595654.5
Person 33/09/2018745819.5
Person 34/09/2018415456.5
Person 34/09/2018535588.5
Person 35/09/2018415456.5
Person 35/09/2018535588.5
Person 36/09/2018505555.5
Person 36/09/2018325357.5

 

What I would want to happen is to group these by Person, then by Week, then sum up the Fee values by adding an extra row as Total, and then finally, output them into separate Excel files. Is this possible?

 

The below what I expect to have in separate Excel spreadsheets.

 

Output 1: 23/07/2018 is the only date in that week

 

NameDateTotal Fee Excl GSTTotal Fee Incl GST
Person 123/07/2018740814
 Total 740814

 

Output 2: 3/09/2018 and 6/09/2018 are part of the same week

 

NameDateTotal Fee Excl GSTTotal Fee Incl GST
Person 13/09/2018740814
Person 16/09/2018740814
 Total 14801628

 

Output 3: 22/10/2018 - 25/10/2018 are part of the same week

 

NameDateTotal Fee Excl GSTTotal Fee Incl GST
Person 122/10/201814601606
Person 123/10/20189501045
Person 124/10/20189501045
Person 125/10/201810401144
Total 44004840

 

Output 4: 13/08/2018 - 16/08/2018 are part of the same week

NameDateTotal Fee Excl GSTTotal Fee Incl GST
Person 213/08/2018415456.5
Person 213/08/2018325357.5
Person 214/08/2018415456.5
Person 214/08/2018325357.5
Person 215/08/2018415456.5
Person 215/08/2018325357.5
Person 216/08/2018415456.5
Person 216/08/2018325357.5
Total 29603256

 

Output 5: 3/09/2018 - 6/09/2018 are part of the same week

 

NameDateTotal Fee Excl GSTTotal Fee Incl GST
Person 33/09/2018595654.5
Person 33/09/2018745819.5
Person 34/09/2018415456.5
Person 34/09/2018535588.5
Person 35/09/2018415456.5
Person 35/09/2018535588.5
Person 36/09/2018505555.5
Person 36/09/2018325357.5
Total 40704477

 

Thanks in advance for your assistance!

 

Kind regards,

Daniel

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

Hi @danielstefanng,

 

Here is a solution...

 

Things to look out for are how we use the summerize tool to aggregate our data.

 

How I've generated a dynamic path for the different xlsx files by concating the week and name together with a path in the formula tool, and then how we can use this to split our data into different files using the output tool.

 

You will have to ammend the file path part as at present it's pointing to a location on my machine.

 

Ben

danielstefanng
7 - Meteor

Thanks a lot Ben!

 

This solved my question.

 

Thanks,

Daniel

Labels