How to properly use LAG function in Conditional Statements?
I have this formula but it is adding the value on the same row. If(
:Column 2 != Lag( :Column 2 ) | Row() == 1, :Column 1,
Row() == 2 | Lag( :Column 2, 1 ) != :Column 2, :Column 2 - (:Column 1 + Lag( :Column 1, 1 )),
Lag( :Result ) - :Column 1
)
What I would want to do is something like this:Column 1 and Column 2 are given values. If Column 2 value changes, the result should be like the star...