LAG Function

The LAG function computes one or more lagged (shifted) values for time series data.