Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Rolling Total for 3 rows prior data including present row

ramatp30
7 - Meteor

Hi All

 

For one of my use case i need to have 4 quarters sum.For any given row i need to have sum off 3 prior quarters or rows including present row.

 

How can i do that.

Below excel table will give more information about my usecase.

Any help is much appreciated. 

 

 

QuarterCommencements_TotalRunningTotal(4Rows)
Sep-840 
Dec-840 
Mar-850 
Sep-841067610676
Dec-84988520561
Mar-85841928980
Jun-851098739967
Sep-851070739998
Dec-85909339206
Mar-86807638863
Jun-86806135937
Sep-86917134401
2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

Hi!

 

Check out the multirow formula tool which will allow you to acheive this.

 

You can set up a formula along the lines of...

 

[Row-3:Commencements_Total]

+

[Row-2:Commencements_Total]

+

[Row-1:Commencements_Total]

+

[Commencements_Total]

 

And if you want the new column to be NULL() when you are creating this calculation then set the drop down 'Values for rows that don't exist' to NULL

 

Ben

ramatp30
7 - Meteor

Thank you @BenMoss it worked!!

Labels