EXCLUDE…ENDEXCLUDE

The EXCLUDE command allows you to define a fixed range of members which are not affected by the associated commands. The ENDEXCLUDE command ends an EXCLUDE command block.

As shown in the example, you call ENDEXCLUDE after all of the commands in the EXCLUDE command block have been called, and before the next element of the calculation script.

Specifying members that should not be calculated in an EXCLUDE..ENDEXCLUDE command may be simpler than specifying a complex combination of member names in a FIX…ENDFIX command.

Syntax

EXCLUDE (Mbrs)
COMMANDS ;
ENDEXCLUDE
ParameterDescription

Mbrs

A member name or list of members from any number of database dimensions. Mbrs 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.

COMMANDS

The commands to be executed for the duration of the EXCLUDE.

Notes

Example

The following example excludes calculations on the children of Qtr4, enabling calculation of other quarters in the Year dimension.

EXCLUDE (@CHILDREN(Qtr4))
CALC DIM (Year)
ENDEXCLUDE

See Also