Lag

Return to: Calculated Member Builder Function List

Returns the member that is a specified number of positions prior to a specified member along the member's dimension.

Syntax

«Member».Lag(«Numeric Expression»)

Remarks

Member positions in the dimension are determined by the dimension’s natural order. The numbering of the positions is zero-based.

If «Numeric Expression» is zero, «Member» is returned. If «Numeric Expression» is negative, a subsequent member is returned.

Lag(1) is equivalent to PrevMember. Lag(-1) is equivalent to NextMember.

The function «Member».Lead is similar, except that it looks in the opposite direction. Lag(n) is equivalent to Lead(-n).

Example

If the levels in the Time dimension include Year and Month, then:

[1995].February.Lag(3)

returns [1994].November.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.