OLE DB Programmer's Reference |
Gives the member that is <index> positions away along the member's dimension, in the dimension's natural order. The numbering of the positions is zero-based.
The function <member>.LAG is similar except that it looks in the opposite direction. If <index> is negative, then LEAD becomes LAG, and vice versa.
Gives the current member along <dimension>. The concept of "currency" occurs in functions such as GENERATE, where the semantics include some form of iteration through members of a set.
Returns the first/last sibling at the parent level of the <member>. For example,
May.FIRSTSIBLING
returns April, and the expression
May.LASTSIBLING
returns June (assuming that the parent level is Quarters).
Returns the ancestor of <member> at the specified level. If <member> has multiple parents, the provider elects which parent member to return.
<level> need not be from the same hierarchy as <member>.
If the level of <member> is equal to <level>, the function returns <member>. For example,
ANCESTOR(USA, Country)
would return USA.
Note The COUSIN function has been deprecated, and providers are no longer required to support it. In most cases, PARALLELPERIOD can be used instead.
This function is best illustrated by an example: The expression
COUSIN([1996].March, [1994])
yields the member [1994].March.
The algorithm to evaluate the COUSIN function call is as follows:
COUSIN(<member1>, <member2>)
The three possible scenarios are as follows:
Returns the equivalent to <member> in <hierarchy>. For example,
LINKMEMBER([Calendar].[1999].[Jan].[12], [Fiscal Year])
might return [Fiscal Year].[1999].[Qtr1].[Jan].[12].
1998-2001 Microsoft Corporation. All rights reserved.