Our data is updated monthly and the last date of available data can be anywhere from 45-75 days behind. For example, data is current through 6/30/2014 as of 8/25/2014.
I have a Time dimension hierarchy named [Calendar] with [Year]>[Half Year]>[Quarter]>[Month]>[Date] I have a measure, [Measures].[Fatalities] set as a calculated member. I have a KPI with [Measures].[Fatalities] set as the Value Expression. My issue is with setting up the goal expression.
I am trying to set a goal expression that is a percent reduction for a 5-year baseline average (Year-7:Year-3). So for the current year (2014, with data through June 2014), the goal would be a 20% reduction of the average of the Jan-Jun 2007, Jan-Jun 2008,Jan-Jun 2009,Jan-Jun 2010,Jan-Jun 2011.
I have set up the following MDX as the goal expression:
.8*((
([Measures].[Fatalities],
PARALLELPERIOD([Time].[Calendar].[Year],7,[Time].[Calendar].CurrentMember))
+
([Measures].[Fatalities],
PARALLELPERIOD([Time].[Calendar].[Year],6,[Time].[Calendar].CurrentMember))
+
([Measures].[Fatalities],
PARALLELPERIOD([Time].[Calendar].[Year],5,[Time].[Calendar].CurrentMember))
+
([Measures].[Fatalities],
PARALLELPERIOD([Time].[Calendar].[Year],4,[Time].[Calendar].CurrentMember))
+
([Measures].[Fatalities],
PARALLELPERIOD([Time].[Calendar].[Year],3,[Time].[Calendar].CurrentMember))
)/5
The problem is that the goal is taking the entire year average at the year level of the Calendar hierarchy. For example, in the attached screenshot, the Fatalities Goal would be empty when the fatalities is empty, and more importantly, the goal at the Year level of the Calendar hierarchy would only be the sum of Jan-Jun goal. The Fatalities Goal in this example should read 549.28 at the Calendar 2014 Year level and the status would still be green.