I have a scenario where I am trying to sum a number of events based on a chosen a date. I need to show the sum of the events by an academic term and application status category for comparison.
This is what I have so far....
WITH MEMBER [MEASURES].[COUNT] AS Sum([Dim Date 1].[CALENDAR].[Full Date].[2010-03-01 00:00:00.000]:[Dim Date 1].[CALENDAR].[Full Date].[2012-11-24 00:00:00.000], [Measures].[EVENT]) SELECT {[Measures].[COUNT] }ON COLUMNS, {[Dim Start Term].[APPL START TERM].&[2013AY],[Dim Start Term].[APPL START TERM].&[2012AY] }* {[Dim Application Category].[APPLICATION CATEGORY DESC].[APPLICATION]} ON ROWS FROM [FACT_APPLICATIONS]
When I run the script I get the following..
Term Status COUNT 2013AY Application 1118 2012AY Application 13649
This works, kind of, but what I need the script to do is to sum the events by an application status and by term for a given date.
So, if I were to choose 2013-12-06 as the date and the terms 2012Fall and 2013Fall the script would sum the number of events for each of the terms for the chosen date and for the same date last year.
I thought that adding time intelligence to the cube would help but the scenario is too specific for the canned calculations and I've gone through the MDX Step by Step book but it has left me a little confused on how to get what I need.
So any help would be greatly appreciated. Please ask questions if you need clarification. Thanks!