Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

Using MDX UNION (or append) attribute members from different dimensions

$
0
0
Hello Experts,I want to "UNION" members from an attribute from 1 dimension with with members of same attribute from another dimension.As an example, below 2 sets are to be in union:1. [Dim1].[Attb].Members2. [Dim2].[Attb].MembersTried below options:1. Below query not working:SELECT {} on 0, UNION ( { [Dim1].[Attb].Members }, { [Dim2].[Attb].Members } )FROM [Cube]2. Below query not working:WITH--I have to use "EXISTS" in MDX, therefore separated the sets.SET [Set1] AS [Dim1].[Attb].Members SET [Set2] AS [Dim2].[Attb].Members SELECT {} on 0, UNION ( { [Set1] }, { [Set2] } ) on 1FROM [Cube]3. Tried with "CrossJoin" & "Nest" to see atleast it returns records, but not working.Is it possible to "Union" data from different dimensions (same attribute)?Any pointers would be helpful.Thanks!!!

Viewing all articles
Browse latest Browse all 1341

Trending Articles