I am attempting to write a formula that works off a forward lag function. I have multiple data sets with values that are a function of time (1200Hz). I want to alter these columns so that the max value is equal to 0.5 seconds, so that when I graph the data, I can do so where the max values overlap. I was able to write this formula so that it works above the column max, but cannot get it to work in a reverse lag function.
If(
:A == Col Maximum( :A ), 0.5,
Lag( Col Maximum( :A ), 1 ), Lag( :B, 1 ) + 1 / 1200,
Lag( Col Maximum( :A ), -1 ), Lag( :B, -1 ) - 1 / 1200
)
As you can see from the preview, it works after the