@NEXTSIBLING

The @NEXTSIBLING calculation function for Essbase returns the next sibling (the sibling to the immediate right) of the specified member.

This function excludes the specified member. If the specified member is the last sibling, Essbase returns an empty string.

This function returns the next sibling as a string. To pass this function as a parameter of another function, where the function requires a list of members, you must wrap the @NEXTSIBLING function call within a @MEMBER function call.

You must also wrap this function within the @MEMBER function if you are calling it inside a member combination specified using the cross-dimensional operator (->). For example, this is correct usage: @MEMBER(@NEXTSIBLING("FY19"))->"A1".

Syntax

@NEXTSIBLING (mbrName)

Parameters

mbrName

Any valid single member name, or a function that returns a single member.

Example

All examples are from the Sample.Basic database.

@NEXTSIBLING("100–20")

Returns 100-30 (the next sibling of 100-20).

@NEXTSIBLING("200")

Returns 300 (the next sibling of 200). @NEXTSIBLING and @SHIFTSIBLING ("200",1) return the same results.

@MEMBER(@NEXTSIBLING("100-20"))

Returns 100-30 (the next sibling of 100-20).

@CHILDREN(@MEMBER(@NEXTSIBLING("East")))

Returns all children of West.