Lag (DMX)
Applies to:
SQL Server Analysis Services
Returns the time slice between the date of the current case and the last date of the training set.
Syntax
Lag()
Return Type
A scalar value of the type integer.
Remarks
If the Lag function is used on a model where the KEY TIME column is located within a nested table, the function must be located within the sub-select of the statement.
Examples
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
See Also
Data Mining Extensions (DMX) Function Reference
Functions (DMX)
General Prediction Functions (DMX)
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ