FIX...ENDFIX

Command

The FIX...ENDFIX command block restricts database calculations to a subset of the database. All commands nested between the FIX and ENDFIX statements are restricted to the specified database subset.

Syntax

FIX (fixMbrs)
COMMANDS ;
ENDFIX

fixMbrs A member name or list of members from any number of database dimensions. fixMbrs can also contain:
  • AND/OR operators. Use the AND operator when all conditions must be met. Use the OR operator when one condition of several must be met.
  • Member set functions, which are used to build member lists based on other members.
COMMANDSThe commands you want to be executed for the duration of the FIX.

Description

The FIX command is a block command that allows you to define a fixed range of dimensions or members to which the associated commands are restricted. The FIX command is often used to calculate a subset of the database. This is useful because it allows you to calculate separate portions of the database using different formulas, if necessary. It also allows you to calculate the sub-section much faster than you would otherwise.

The ENDFIX command ends a FIX command block. As shown in the following example, you call ENDFIX after all of the commands in the FIX command block have been called and before the next element of the calc script.

Notes

Example

FIX (Budget)
   CALC DIM (Year, Measures, Product, Market);
ENDFIX

FIX (Budget, Jan, Feb, Mar, @DESCENDANTS(Profit))
   CALC DIM (Product, Market);
ENDFIX

This example fixes on the children of East and the members on the Market dimension that have a UDA (User-Defined Attribute) of New Mkt.

FIX (@CHILDREN(East) OR @UDA(Market, "New Mkt"))

This example fixes on the children of East that have a UDA (User-Defined Attribute)of New Mkt and the members on the Market dimension that have a UDA of Big Mkt.

FIX((@CHILDREN(East) AND @UDA(Market, "New Mkt")) OR @UDA(Market,"Big Mkt"))

See Also

LOOP...ENDLOOP


Copyright (c)1991-2000 Hyperion Solutions Corporation. All rights reserved.