IsSibling

Returns TRUE if the first member is a sibling of the second member and, optionally, if the first member is equal to the second member.

Syntax

IsSibling( member1, member2 [, INCLUDEMEMBER])
ParameterDescription

member1

A member specification.

member2

A member specification.

INCLUDEMEMBER

Optional. Use this keyword if you want IsSibling to return TRUE if the first member is equal to the second member.

Example

Example 1

The following query returns all Market dimension members for which the expression IsSibling([Market].CurrentMember, [California]) returns TRUE; in other words, the query returns all states that are siblings of California.

SELECT
 Filter([Market].Members, IsSibling([Market].CurrentMember, [California]))
ON COLUMNS
FROM Sample.Basic
OregonWashingtonUtahNevada
5062464131554039

Example 2

The following query is the same as the above query, except that it uses INCLUDEMEMBER. It returns all Market dimension members for which the expression IsSibling([Market].CurrentMember, [California]) returns TRUE; in other words, the query returns all states that are siblings of California, including California itself.

SELECT
 Filter([Market].Members, IsSibling([Market].CurrentMember, [California], INCLUDEMEMBER))
ON COLUMNS
FROM Sample.Basic
CaliforniaOregonWashingtonUtahNevada
129645062464131554039