The @LEVMBRS() function returns all members with the specified level number or level name in the specified dimension.
@LEVMBRS(dimName, levName|levNum)
dimName | Dimension name specification. |
levName|levNum | A level name or an integer value that defines the number of a level. A value of 0 or a negative integer defines a level number. |
@LEVMBRS(Product,-1)
, Hyperion Essbase returns 100, 200, 300, 400, Diet (in that order). This order is important to consider when you use the @LEVMBRS member set function with certain forecasting and statistical functions.
In the Sample Basic database:
@LEVMBRS(Measures,"Profit and Loss") @LEVMBRS(Measures,0)
both return the following members if level 0 of the Measures dimension is named Profit and Loss:
Sales, COGS, Marketing, Payroll, Misc, Opening Inventory, Additions, Ending Inventory, Margin %, Profit %, and Profit per Ounce (in that order).
@LEVMBRS(Scenario,0)
returns Actual, Budget, Variance, and Variance %.
The following example restricts the calculation to members with the combination Budget and one of the members of the Market dimension with a level name of "State".
FIX (Budget,@LEVMBRS(Market,State)) CALC DIM (Year,Measures); ENDFIX
Copyright (c)1991-2000 Hyperion Solutions Corporation. All rights reserved.