I have this MDX calculation in my SSRS report. I'm trying to do a running total for Actuals (for prior months) + Monthly EAC (for current period ->forward). The calculation works great unless you do not have any actual costs for prior months. In that case, it is pulling in monthly EAC, which is wrong. I would like it to show zero/null if there are no actuals for prior periods. Here's the calc and an example of the output:
MEMBER [Measures].[Actuals + EAC] AS IIF(ISEMPTY(([Actuals])) AND ISEMPTY(([Monthly EAC])),NULL,
SUM([Time].CurrentMember.Parent.FirstChild:[Time].CurrentMember, IIF(ISEMPTY(([Actuals], [Time].LastChild, [Project_Task - All Task Levels].[All])),
[Monthly EAC],[Actuals])))
OCT | NOV | DEC | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | |
Actuals | ||||||||||||
Monthly EAC | 0.214 | 0.214 | 0.003 | 0.257 | 0.149 | 0.149 | 0.149 | 0.149 | 0.149 | |||
Actuals + EAC | 0.214 | 0.428 | 0.432 | 0.689 | 0.689 | 0.689 | 0.689 | 0.837 | 0.986 | 1.135 | 1.283 | 1.432 |