分享方式:


除了 (MDX) 運算子

執行集合作業,傳回兩個集合之間的差異,移除重複的成員。

語法

  
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)