執行一個集合運算,回傳兩個集合的差值,並移除重複成員。
Syntax
Set_Expression - Set_Expression
參數
Set_Expression
一個有效的多維表達式(MDX)表達式,能回傳一個集合。
傳回值
一個包含兩個指定參數都不共享成員的集合。
備註
-(Except)運算子在功能上等價於 Except 函數。
Examples
以下範例展示了此運算子的使用:
// 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]