IsChild

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

Syntax

IsChild ( member1 , member2 [, INCLUDEMEMBER])
ParameterDescription

member1

A member specification.

member2

A member specification.

INCLUDEMEMBER

Optional. Use this keyword if you want IsChild 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 IsChild([Market].CurrentMember, [East]) returns TRUE; in other words, the query returns all children of East.

SELECT
 Filter([Market].Members, IsChild([Market].CurrentMember, [East]))
ON COLUMNS
FROM Sample.Basic
New YorkMassachusettsFloridaConnecticutNew Hampshire
82026712502930931125

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 IsChild([Market].CurrentMember, [East]) returns TRUE; in other words, the query returns East and all children of East.

SELECT
 Filter([Market].Members, IsChild([Market].CurrentMember, [East], INCLUDEMEMBER))
ON COLUMNS
FROM Sample.Basic
EastNew YorkMassachusettsFloridaConnecticutNew Hampshire
2416182026712502930931125