title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic | ms.custom |
---|---|---|---|---|---|---|---|---|---|
+ (Union) (MDX) |
Union - MDX operator reference |
kfollis |
kfollis |
kfollis |
02/17/2022 |
sql |
analysis-services |
reference |
mdx |
Performs a set operation that returns a union of two sets, removing duplicate members.
Set_Expression + Set_Expression
Set_Expression
A valid Multidimensional Expressions (MDX) expression that returns a set.
A set that contains the members of both specified sets.
The + (Union) operator is functionally equivalent to the Union (MDX) function.
The following example demonstrates the use of this operator.
-- This member returns the gross profit margin for each year for North American countries.
SELECT
[Date].[Calendar].[Calendar Year].Members ON 0,
{[Sales Territory].[Sales Territory].[Country].[United States]} +
{[Sales Territory].[Sales Territory].[Country].[Canada]} ON 1
FROM
[Adventure Works]
WHERE
([Measures].[Gross Profit Margin])