Hi all
Can someone help me how to formulate a formula that would subtract Column 2 to the previous value in Column 1? It should look like this. The column Equation only shows how the subtraction of values should be.TIA
Then you need some conditional logic. Something like:
If( :Column 2 != Lag( :Column 2, 1 ) | Row() == 1, :Column 1, :Column 2 - Lag( :Column 1, 1 ) )
You can use the LAG function:
:Column 1 - Lag( :Column 2, 1 )
Hi, how about if I wanted to retain the row value before the values in Column 2 changes? Like this one
Hi, I have a follow up question tho. What if I needed to add the values from Column 1 to be subtracted in Column 2?
For example,