Returns the children of the member.
In our example all cities of Europe.
Query
[Geography].[Geo].[Europe].children
Result
{
[Geography].[Geo].[Country].[France],
[Geography].[Geo].[Country].[Spain],
[Geography].[Geo].[Country].[Switzerland]
}
Assertion : MDX Equals
Descendants([Geography].[Geo].[Europe], 1)
Assertion : MDX Equals
// Filtering all the countries whose parent is Europe.
Filter( [Geography].[Geo].[Country].members , [Geography].[Geo].currentMember.parent IS [Geography].[Geo].[Europe] )
Children method returns members in their natural order (i.e., hierarchized).
Query
[Geography].[Geo].[Europe].children
Result
{
[Geography].[Geo].[Country].[France],
[Geography].[Geo].[Country].[Spain],
[Geography].[Geo].[Country].[Switzerland]
}
Assertion : MDX Equals
Hierarchize([Geography].[Geo].[Europe].children)
Returns an empty set if the member has no children (it's a leaf member).
Query
[Geography].[Geo].[Paris].children
Result
Calculated members are not included in children function.
Query
WITH
MEMBER [Geography].[Europe].[Andorra] as 42
SELECT
[Geography].[Europe].children on 0
FROM
[Sales]
Result
France |
Spain |
Switzerland |
4 |
3 |
248 |
Assertion : MDX Equals
SELECT
[Geography].[Europe].children on 0
FROM
[Sales]