CUMULATE

CUMULATE(x) or CUM(x) forms the cumulative sum of the values of x; i.e. x1, x1+x2, x1+x2+x3, and so on.