Free Trial

Alteryx Designer Desktop Discussions

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

Running totals for definite time frame

Shrabasti
5 - Atom

Hi All,

 

I want to do a conditional running total column where every row will sum up the last 3 rows including itself.

Please see below example. Request for urgent help.

 

BUDateValuesRunning Totals of last 3 months
ABCJan'2100
ABCFeb'2111
ABCMar'2112
ABCApril'2113
ABCMay'2102
XYZJan'2111
XYZFeb'2134
XYZMar'2103
XYZApril'2111
XYZMay'2101
OPDJan'2144
OPDFeb'2104
OPDMar'2137
OPDApril'2114
OPDMay'2104

 

 

1 REPLY 1
TheOC
15 - Aurora
15 - Aurora

hey @Shrabasti 

I believe i have produced this for you:

TheOC_0-1639874756278.png

 

TheOC_1-1639874760062.png



Technically can be done all in one tool (the multi-row formula), however it ends up re-ordering the results - so i applied a record id before and after, and then dropped that in a select tool:
 

TheOC_2-1639875234005.png



Also - FYI - if you have any Designer based questions, i would recommend popping them into the 'Designer Discussions' part of the community (https://community.alteryx.com/t5/Alteryx-Designer-Discussions/bd-p/designer-discussions) rather than General. General gets much less traction, and it will take longer to get your question answered.

Hope this helps
TheOC


Bulien
Labels
Top Solution Authors