I posted the same question on stackoverflow (now deleted), but did not get an answer.
Perhaps this would be a better forum to ask it.
Following the answer to this question, I have managed to produce the following output to get a running sum of values:
The table is shown ordered from last to first. The 22.5
is 26 - 3.5
. This subtraction should be done (this_value - previous_sum
) depends on the value of the transformed_op
. When the original op
had been an override op
I would like to perform some action based on the running sum of the row proceeding it (ordered by creation desc
), in this case subtract that running sum value from the value in the value
column.