Closed christopherswenson closed 8 months ago
Fixes https://github.com/malloydata/malloy/issues/1492
Adds a sum_moving function similar to the avg_moving function:
sum_moving
avg_moving
Two overloads:
sum_moving(x, n)
x
n
sum_moving(x, n, m)
m
Fixes https://github.com/malloydata/malloy/issues/1492
Adds a
sum_moving
function similar to theavg_moving
function:Two overloads:
sum_moving(x, n)
— sum ofx
for the current row plusn
preceding rowssum_moving(x, n, m)
— sum ofx
for the current row plusn
preceding rows andm
following rows