SHIFT() function
Shift a value forward or back through time periods
Rob Markwell
Last Update 4 maanden geleden
The shift formula allows a user to shift a reference indicator's value backwards or forwards through a number of time periods.
“Indicator name” : string. Name of the reference indicator to shift
number_of_period : number or reference to another indicator - number of periods to shift the values
Assuming the model is monthly - the “6” shifts the values from Indicator 1 by 6 months into indicator 2
The first 6 months of Indicator 2 are filled with 0 as the value.
Formula
Assuming the model is monthly - the “-2” shifts the values from Indicator 1 by 2 months into indicator 2 in a negative way
Formula :
Dynamic shift:
Assuming that data values are in integer format which means it has both negative and positive values. In this example we are shifting values by B . so it will simply add A+B and shift the values.
Formula: