Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
numbervar the_field := {table.value}; //Replace with your field that has the value you want to total.
numbervar array Accum;
numbervar Rolling_Period := 15;
if OnFirstRecord then
ReDim Accum [1]
else
ReDim Preserve Accum [UBound(Accum)+1];
Accum [UBound(Accum)] := the_field;
If UBound(Accum) <= Rolling_Period then
Sum(Accum) - the_field
Else
sum(Accum[(UBound(Accum) - (Rolling_Period-1)) to UBound(Accum)]) - the_field;