Alteryx Designer Desktop Discussions

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

simple running total

parria1
8 - Asteroid

I am trying to get the running total column below. How do I do this in Alteryx?

yrmthspendrunning total
201815050
2018260110
2018375185
2018425210
20185350560
20186254814
6 REPLIES 6
BenMoss
ACE Emeritus
ACE Emeritus

There's a tool for that.

 

Use the global search and look for 'running total'.

 

The tool is super easy to configure, have a go and let us know if you have any problems!

 

Ben

parria1
8 - Asteroid

I have it working for the example I provided but cannot figure out how to get it working in the workflow Running Total example. That text input is most like the data I will need to get a running total. The example do not offer a solution that just gets a simple running total by row by each customer ID.

It cannot get it to work for simple running totals. I don't want any groupings.

like this 

CustomerIDFirstNameLastNameAddressCityStateZIPCustomerSegmentVisitsSpendrunning total
1PAMELAWRIGHT2316 E 5th AveDENVERCO80206Home Office1206.95206.95
2MELISSARUFF2753 S Milwaukee StDENVERCO80210Consumer1228.27435.22
3CONSTANTIVLASSIS16911 E Harvard AveAURORACO80013Small Business1432.44867.66
4AMYLOCKEMER3721 S Pitkin CtAURORACO80013Home Office42101.112968.77
5DANELLVALDEZ2925 W College AveDENVERCO80219Home Office11404.094372.86
6JESSICARINEHART4220 W 35th AveDENVERCO80212Small Business2962.615335.47
7NANCYCLARK8785 Cloverleaf CirPARKERCO80134Small Business4552.535888
8ANDREABRUN2080 Fenton StDENVERCO80214Home Office125.375913.37
9DENISEPENTICO4125C S Evanston CirAuroraCO80014Corporate27026.4412939.81
10ERNAARUSTAMYAN1137 S Boston CtDENVERCO80247Consumer21838.6414778.45
11ZAREFAHAMMAD1651 Biscay CirAURORACO80011Home Office129.114807.55
12MURIELCOULTER12704 E Asbury CirAURORACO80014Home Office114.1714821.72
13KARENOSBORNE7595 S Teller CtLITTLETONCO80128Home Office198.6114920.33
14SHIRLEYKRYWONIS370 Eudora StDENVERCO80220Home Office7866.315786.63
15MICHELEMUNSEY8300 Fairmount DrDENVERCO80247Home Office64402.4620189.09
16DIANNEVANGILDER15358 E Saratoga PlAURORACO80015Home Office41896.8422085.93
17NELEMENDIOLA7498 Alkire StArvadaCO80005Home Office3745.6522831.58
BenMoss
ACE Emeritus
ACE Emeritus

The 'group by' criteria is the key part here.

 

Essentially you should read this as 'provide me a running total for each group within these selected fields.

 

If you want a running total per customer then you should check the customer, if you don't then simply uncheck this!

 

Ben

parria1
8 - Asteroid

to get the running total I require, leave all the group by fields unchecked and just sum whatever totals I need in the running totals.

parria1
8 - Asteroid

how would I get the running comp row (each row divided by total)

CustomerIDFirstNameLastNameAddressCityStateZIPCustomerSegmentVisitsSpendrunning totalRunning Comp
1PAMELAWRIGHT2316 E 5th AveDENVERCO80206Home Office1 $          207 $             2071%
2MELISSARUFF2753 S Milwaukee StDENVERCO80210Consumer1 $          228 $             4352%
3CONSTANTIVLASSIS16911 E Harvard AveAURORACO80013Small Business1 $          432 $             8684%
4AMYLOCKEMER3721 S Pitkin CtAURORACO80013Home Office4 $      2,101 $         2,96913%
5DANELLVALDEZ2925 W College AveDENVERCO80219Home Office1 $      1,404 $         4,37319%
6JESSICARINEHART4220 W 35th AveDENVERCO80212Small Business2 $          963 $         5,33523%
7NANCYCLARK8785 Cloverleaf CirPARKERCO80134Small Business4 $          553 $         5,88826%
8ANDREABRUN2080 Fenton StDENVERCO80214Home Office1 $            25 $         5,91326%
9DENISEPENTICO4125C S Evanston CirAuroraCO80014Corporate2 $      7,026 $       12,94057%
10ERNAARUSTAMYAN1137 S Boston CtDENVERCO80247Consumer2 $      1,839 $       14,77865%
11ZAREFAHAMMAD1651 Biscay CirAURORACO80011Home Office1 $            29 $       14,80865%
12MURIELCOULTER12704 E Asbury CirAURORACO80014Home Office1 $            14 $       14,82265%
13KARENOSBORNE7595 S Teller CtLITTLETONCO80128Home Office1 $            99 $       14,92065%
14SHIRLEYKRYWONIS370 Eudora StDENVERCO80220Home Office7 $          866 $       15,78769%
15MICHELEMUNSEY8300 Fairmount DrDENVERCO80247Home Office6 $      4,402 $       20,18988%
16DIANNEVANGILDER15358 E Saratoga PlAURORACO80015Home Office4 $      1,897 $       22,08697%
17NELEMENDIOLA7498 Alkire StArvadaCO80005Home Office3 $          746 $       22,832100%
parria1
8 - Asteroid

the attached screenshot workflow shows a simple way to get the composition to total for each row.

 Capture.PNG

Labels