Member positions within a level are determined by the attribute hierarchy's natural order. The numbering of the positions is zero-based.
If the specified lag is zero, the Lag function returns the specified member itself.
If the specified lag is negative, the Lag function returns a subsequent member.
Lag(1) is equivalent to the PrevMember function. Lag(-1) is equivalent to the NextMember function.
The Lag function is similar to the Lead function, except that the Lead function looks in the opposite direction to the Lag function. That is, Lag(n) is equivalent to Lead(-n).
Parameters
Member_Expression: string
Index: number = 0
Returns string
the member that is a specified number of positions before a specified member at the member's level.
Member positions within a level are determined by the attribute hierarchy's natural order. The numbering of the positions is zero-based.
Lag(1)
is equivalent to thePrevMember
function.Lag(-1)
is equivalent to theNextMember
function.The Lag function is similar to the Lead function, except that the Lead function looks in the opposite direction to the
Lag
function. That is,Lag(n)
is equivalent toLead(-n)
.