Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Returns the time slice between the date of the current case and the last date of the training set.
The following example returns cases that fall within the last 12 months of the data that was used to train the model.
SELECT * FROM [Forecasting].CASES WHERE Lag() < 12