Issue using lag function for filters

I used the lag function to operate a subtraction between data point and immediate previous data point from the same column. I then created a filter to know when the lag exceeds a certain value, but this gives an error every time. I need the filter in order to create an alert for monitoring the lag. Any advice?