更新日期: 2006 年 7 月 17 日
计算两个集并删除第一个集中与第二个集中的元组重复的元组,也可以保留重复项。
语法
Except(Set_Expression1, Set_Expression2 [, ALL ] )
参数
- Set_Expression1
 返回集的有效多维表达式 (MDX)。
- Set_Expression2
 返回集的有效多维表达式 (MDX)。
备注
如果指定了 ALL,该函数将保留在第一个集中找到的重复项,但仍会删除在第二个集中找到的重复项。成员的返回顺序与它们在第一个集中出现的顺序相同。
示例
以下示例说明了此函数的用法。
   This query shows the quantity of orders for all products,
   with the exception of Components, which are not
   sold.
SELECT 
   [Date].[Month of Year].Children  ON COLUMNS,
   Except
      ([Product].[Product Categories].[All].Children ,
         {[Product].[Product Categories].[Components]}
      ) ON ROWS
FROM
   [Adventure Works]
WHERE
   ([Measures].[Order Quantity])
请参阅
参考
帮助和信息
更改历史记录
| 发布日期 | 历史记录 | 
|---|---|
| 2006 年 7 月 17 日 | 
 |