Alteryx Designer Desktop Discussions

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

Running total - opposite...?

Chelseaa
7 - Meteor

hi all!

 

 i need some help with running total, this is my input data:

 

TeamJan 20Feb 20Mar 20Apr 20May 20Jun 20Jul 20Aug 20Sep 20Oct 20Nov 20Dec 20
Finance 201512142526321224231215
HR512351211934121211229
Mktg14251235121493412242312

 

I would like to calculate 2 things- spent and to be spent , according to the date

for spent:

for jan, spent = jan for the respective teams

for feb, spent = jan + feb  for the respective teams

 

to calculate to-be spent:

for Jan, to-be spend = feb + Mar + Apr + ... + Dec   for the respective teams

for feb, to be spend = Mar + Apr + May + ... + Dec  for the respective teams

for Dec, tobe spend = 0  for the respective teams

 

this is my desired output data: (sorry got lazy to input the numbers for to-be spent)

TeamMonthSpentTo-be spent
Finance Jan 2020210
Finance Feb 2035195
Finance Mar 2047183
Finance Apr 2061169
Finance May 2086 
Finance Jun 20112 
Finance Jul 20144 
Finance Aug 20156 
Finance Sep 20180 
Finance Oct 20203 
Finance Nov 20215 
Finance Dec 20230 
HRJan 205 
HRFeb 2017 
HRMar 2052 
HRApr 2064 
HRMay 2075 
HRJun 2084 
HRJul 20118 
HRAug 20130 
HRSep 20142 
HROct 20153 
HRNov 20175 
HRDec 20184 
MktgJan 2014 
MktgFeb 2039 
MktgMar 2051 
MktgApr 2086 
MktgMay 2098 
MktgJun 20112 
MktgJul 20121 
MktgAug 20155 
MktgSep 20167 
MktgOct 20191 
MktgNov 20214 
MktgDec 20226 

 

Thank you in advance!

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @Chelseaa 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1606735370788.png

Workflow:

atcodedog05_1-1606735388993.png

 

Hope this helps 🙂 Feel to ask if you have any questions


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Qiu
20 - Arcturus
20 - Arcturus

@Chelseaa 

A bit different with the one from @atcodedog05 

1130-Chelseaa.PNG

Chelseaa
7 - Meteor

@atcodedog05  @Qiu 

 

Thank you so much both! it works 🙂

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Chelseaa 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any issues 🙂

Qiu
20 - Arcturus
20 - Arcturus

@Chelseaa 

Thank you always also😁

Labels