分享方式:


RollupChildren (MDX)

傳回使用指定一元運算子來匯總指定成員之子系值所產生的值。

語法

  
RollupChildren(Member_Expression, Unary_Operator)   

引數

Member_Expression
傳回成員的有效多維度運算式 (MDX) 運算式。

Unary_Operator
指定一元運算子的有效字串運算式。

備註

RollupChildren 函式會使用指定的一元運算子來匯總指定成員子系的值。

下表描述此函式的有效一元運算子。

運算子 結果
+ total = total + current child
- total = total - 目前的子系
* total = total * current child
/ total = total / current child
% total = (total / current child) * 100
~ 子系不會用於匯總中。 會忽略其值。

如果成員屬性中的 運算子未出現在清單中,就會發生錯誤。 評估的順序取決於同層級的順序,而不是由運算子的優先順序來決定。

範例

下列範例會使用名為 「Alternate Rollup Operator」 的成員屬性,其中包含一元運算子的替代值,以替代方式匯總 Account 維度中 Net Profit 階層的子系。 此成員屬性不存在於 Adventure Works Cube 中,但可以建立。 此 RollupChildren 函式的使用可用於預算應用程式中的假設分析。

RollupChildren  
   ( [Account].[Net Profit]  
   , [Account].CurrentMember.Properties ('Alternate Rollup Operator') )  

另請參閱

MDX 函數參考 (MDX)