更新日期: 2006 年 7 月 17 日
使用指定的一元运算符,通过汇总指定成员的子成员的值,从而返回所生成的值。
语法
RollupChildren(Member_Expression, Unary_Operator) 
参数
- Member_Expression
 返回成员的有效多维表达式 (MDX)。
- Unary_Operator
 指定一元运算符的有效字符串表达式。
备注
RollupChildren 函数使用指定的一元运算符,对所指定成员的子成员的值进行汇总。
下表说明了可用于此函数的有效一元运算符。
| 运算符 | 结果 | 
|---|---|
| + | total = total + current child | 
| - | total = total - current child | 
| * | total = total * current child | 
| / | total = total / current child | 
| % | total = (total / current child) * 100 | 
| ~ | 不在汇总结果中使用子成员。子成员的值将被忽略。 | 
如果成员属性中的运算符未显示在列表中,则会发生错误。求值顺序取决于同级的顺序,而不是运算符的优先顺序。
示例
下例使用名为“Alternate Rollup Operator”的成员属性(包含一元运算符的备用值)以备用方式汇总 Account(帐户)维度中 Net Profit(净利润)层次结构的子成员。该成员属性不在 Adventure Works 多维数据集中,但是可以创建。可以在假设分析的预算应用中使用 RollupChildren 函数。
RollupChildren
   ( [Account].[Net Profit]
   , [Account].CurrentMember.Properties ('Alternate Rollup Operator') )
ON )
FROM [Adventure Works]
请参阅
参考
帮助和信息
更改历史记录
| 发布日期 | 历史记录 | 
|---|---|
| 2006 年 7 月 17 日 | 
 |