Formula based on previous row

In EasyMorph use a cumulative calculation to iteratively sum up values of previous rows.

See example below for your case:
cumulative-sum.morph (2.1 KB)
image

This technique is used frequently. See also this topic: Dynamic/virtual subtraction of values