Relationship Functions

Relationship functions look up specific values within the database based on current cell location and a series of parameters. You can use these functions to refer to another value in a data series. Relationship functions have an implicit current member argument; that is, these functions are dependent on the current member's position.

In the following quick-reference table, words in italics loosely represent information you supply to the function. For details, see the individual function topics.

FunctionReturn Value
@ANCESTVALAncestor values of a specified one-dimensional member combination.
@ATTRIBUTEBVALAssociated attribute value from a Boolean attribute dimension.
@ATTRIBUTESVALAssociated attribute value from a text attribute dimension.
@ATTRIBUTEVALAssociated attribute value from a numeric or date attribute dimension.
@CURGENGeneration number of the current member in dimension.
@CURLEVLevel number of the current member in dimension.
@GENGeneration number of member.
@LEVLevel number of member.
@MDANCESTVALAncestor values for any number of multidimensional member combinations.
@MDPARENTVALParent values for any number of multidimensional member combinations.
@PARENTVALParent values for member in dimension.
@SANCESTVALAncestor values for shared members at a certain depth under root member.
@SPARENTVALParent values for shared members under root member.
@XREFValues from a different database than the one being calculated.
@XWRITEWrites values to a different database than the one being calculated.