Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

MDX SSAS Union Question

$
0
0

I know we can not union two data sets with two different dimensionality but to explain layman terms or in SQL Terms i am trying to accomplish the common resultsets for dimensionality by doing a full outer join based on two different dates.

the dimension has two dates . Submit date and Resolved Date. The numbers for month can vary differnetly as a ticket can be opened in one month and can be close in different month.

I am intrested to see is if we can accomplish creating a common set value for both dates into one line and aggregate them.

For Example Submit Date for Month of May is same and it will be same through out but the closing date for May might have been sumbitted few month or in previous month or may be in past few months. So I need to aggregate those values. to the sum of the date for the previous month

is their any way i can resolve this in MDX or any suggestion to resolve the issues

With Member [Measures].[submitTicket] as
Sum( [Dim Ticket Submit Date].[Day],
 [Measures].[Total Labor Count])
 
 Member [Measures].[Resolvedticket] as Sum( [Dim Ticket Resolved Date].[Day], 
[Measures].[Total Labor Count])
Select {
[Measures].[submitTicket], [Measures].[Resolvedticket] 
,[Measures].[Total Labor Count]
} on 0 ,
NON EMPTY (Union (
	CrossJoin(
		[Dim Ticket Resolved Date].[Month].children, 
		[Dim Ticket Submit Date].[Month].[Month]
		),
	CrossJoin(
		[Dim Ticket Resolved Date].[Month].[Month],
		[Dim Ticket Submit Date].[Month].children
		)
		) )
		
		
		on 1 
	
from  
[Cube]


Viewing all articles
Browse latest Browse all 2472

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>