-(排除)(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)