Returns all members from the first set that are not present in the second. Duplicates are removed.
In our example, a single instance of [America] is returned.
Query
Except({[Geography].[Geo].[Europe],[Geography].[Geo].[America],[Geography].[Geo].[America]},[Geography].[Geo].[Europe])
Result
{
[Geography].[Geo].[Continent].[America]
}
Assertion : MDX Equals
{ [Geography].[Geo].[America] }
Assertion : MDX Equals
// Equivalent to the operator -
{[Geography].[Geo].[Europe],[Geography].[Geo].[America],[Geography].[Geo].[America]} - {[Geography].[Geo].[Europe]}
Assertion : MDX Equals
// Duplicates are removed
Except({[Geography].[Geo].[Europe],[Geography].[Geo].[America],[Geography].[Geo].[America]},[Geography].[Geo].[Europe])
Returns all tuples from the first set that are not present in the second.
In our example, ([Geography].[Geo].[Europe],[Product].[Prod].[Corporate]) is returned.
Query
Except({[Geography].[Geo].[Europe],[Geography].[Geo].[America]} * [Product].[Prod].[Corporate],{([Geography].[Geo].[America],[Product].[Prod].[Corporate])} )
Result
{
( [Geography].[Geo].[Continent].[Europe], [Product].[Licence].[Corporate] )
}
Assertion : MDX Equals
{([Geography].[Geo].[Europe],[Product].[Prod].[Corporate])}
Returns all elements from the first set that are not present in the second. Duplicated elements are kept.
In our example, two instances of {[America], [America]} are returned.
Query
Except({[Geography].[Geo].[Europe],[Geography].[Geo].[America],[Geography].[Geo].[America]},{[Geography].[Geo].[Europe]},ALL)
Result
{
[Geography].[Geo].[Continent].[America],
[Geography].[Geo].[Continent].[America]
}
Assertion : MDX Equals
{[Geography].[Geo].[America],[Geography].[Geo].[America]}
Assertion : MDX Equals
Except({[Geography].[Geo].[Europe],[Geography].[Geo].[America],[Geography].[Geo].[America]},{[Geography].[Geo].[Europe]},all/*lower case*/)