|
1 | 1 | --- |
2 | | -description: "Children (MDX)" |
3 | | -title: "Children (MDX) | Microsoft Docs" |
4 | | -ms.date: 02/17/2022 |
| 2 | +title: "Children (MDX)" |
| 3 | +description: "Returns the set of children of a specified member." |
| 4 | +author: minewiskan |
| 5 | +ms.author: owend |
| 6 | +ms.reviewer: owend, randolphwest |
| 7 | +ms.date: 08/08/2022 |
5 | 8 | ms.prod: sql |
6 | 9 | ms.technology: analysis-services |
7 | | -ms.custom: mdx |
8 | 10 | ms.topic: reference |
9 | | -ms.author: owend |
10 | | -ms.reviewer: owend |
11 | | -author: minewiskan |
| 11 | +ms.custom: mdx |
12 | 12 | --- |
13 | 13 | # Children (MDX) |
14 | 14 |
|
| 15 | +Returns the set of children of a specified member. |
| 16 | + |
| 17 | +## Syntax |
15 | 18 |
|
16 | | - Returns the set of children of a specified member. |
17 | | - |
18 | | -## Syntax |
19 | | - |
20 | | -``` |
21 | | - |
22 | | -Member_Expression.Children |
23 | | -``` |
24 | | - |
25 | | -## Arguments |
26 | | - *Member_Expression* |
27 | | - A valid Multidimensional Expressions (MDX) expression that returns a member. |
28 | | - |
29 | | -## Remarks |
30 | | - The **Children** function returns a naturally ordered set that contains the children of a specified member. If the specified member has no children, this function returns an empty set. |
31 | | - |
32 | | -## Example |
33 | | - The following example returns the children of the United States member of the Geography hierarchy in the Geography dimension. |
34 | | - |
35 | | -``` |
36 | | -SELECT [Geography].[Geography].[Country].&[United States].Children ON 0 |
37 | | -FROM [Adventure Works] |
38 | | -``` |
39 | | - |
40 | | - The following example returns all members in the **Measures** dimension on the column axis, this includes all calculated members, and the set of all children of the `[Product].[Model Name]` attribute hierarchy on the row axis from the **Adventure Works** cube. |
41 | | - |
42 | 19 | ``` |
43 | | -SELECT |
44 | | - Measures.AllMembers ON COLUMNS, |
45 | | - [Product].[Model Name].Children ON ROWS |
46 | | -FROM |
| 20 | +Member_Expression.Children |
| 21 | +``` |
| 22 | + |
| 23 | +## Arguments |
| 24 | + |
| 25 | +#### *Member_Expression* |
| 26 | + |
| 27 | +A valid Multidimensional Expressions (MDX) expression that returns a member. |
| 28 | + |
| 29 | +## Remarks |
| 30 | + |
| 31 | +The **Children** function returns a naturally ordered set that contains the children of a specified member. If the specified member has no children, this function returns an empty set. |
| 32 | + |
| 33 | +## Example |
| 34 | + |
| 35 | +The following example returns the children of the United States member of the Geography hierarchy in the Geography dimension. |
| 36 | + |
| 37 | +``` |
| 38 | +SELECT [Geography].[Geography].[Country].&[United States].Children ON 0 |
| 39 | +FROM [Adventure Works]; |
| 40 | +``` |
| 41 | + |
| 42 | +The following example returns all members in the **Measures** dimension on the column axis, this includes all calculated members, and the set of all children of the `[Product].[Model Name]` attribute hierarchy on the row axis from the **Adventure Works** cube. |
| 43 | + |
| 44 | +``` |
| 45 | +SELECT |
| 46 | + Measures.AllMembers ON COLUMNS, |
| 47 | + [Product].[Model Name].Children ON ROWS |
| 48 | +FROM |
47 | 49 | [Adventure Works] |
48 | | - |
49 | | -``` |
50 | | - |
51 | | -|Release|History| |
52 | | -|-------------|-------------| |
53 | | -|[!INCLUDE[ssBOL2005_R03](../includes/ssbol2005-r03-md.md)]|**Changed content:**<br /> - Updated syntax and arguments to improve clarity.<br /><br /> - Added updated examples.| |
54 | | - |
55 | | -## See Also |
56 | | - [MDX Function Reference (MDX)](../mdx/mdx-function-reference-mdx.md) |
57 | | - |
58 | | - |
| 50 | +``` |
| 51 | + |
| 52 | +## Next steps |
| 53 | + |
| 54 | +- [MDX Function Reference (MDX)](../mdx/mdx-function-reference-mdx.md) |
0 commit comments