Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

- (Except) (MDX)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Performs a set operation that returns the difference between two sets, removing duplicate members.

Set_Expression - Set_Expression


A valid Multidimensional Expressions (MDX) expression that returns a set.

A set that contains members that are not shared by both specified parameters.

The - (Except) operator is functionally equivalent to the Except function.

The following example demonstrates the use of this operator:

// This query shows the quantity of orders for all product categories
// with the exception of Components.
   [Measures].[Order Quantity] ON COLUMNS,
   [Product].[Product Categories].[All].Children 
   - [Product].[Product Categories].[Components] ON ROWS
    [Adventure Works]
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft