Except (MDX) 演算子

2 つのセットの重複メンバーを削除して差集合を返すセット演算を実行します。

構文

  
Set_Expression - Set_Expression  

パラメーター

Set_Expression
セットを返す有効な多次元式 (MDX) 式。

戻り値

指定した両方のパラメーターによって共有されていないメンバーを含むセットです。

解説

- (Except) 演算子は、Except 関数と機能的に同等です。

この演算子の使用例を次に示します。

// This query shows the quantity of orders for all product categories  
// with the exception of Components.  
SELECT   
   [Measures].[Order Quantity] ON COLUMNS,  
   [Product].[Product Categories].[All].Children   
   - [Product].[Product Categories].[Components] ON ROWS  
FROM  
    [Adventure Works]  

参照

MDX 演算子リファレンス (MDX)