Hello,
I have a Time hierarchy YQMD
I want to make an MDX calculation that gives me the YTD until the previous month.
I did this with formula:
I first made a 'normal' ytd calculation resulting in 'MyMeasureYTD'
sum
(YTD([Time].[Years Quarters Months Weeks Days]),[Measures].[MyMeasure])
and then I use the following formula
ParallelPeriod([Time].[Years Quarters Months Weeks Days].[Months]),[Measures].[MyMeasureYTD]
this works fine for all months except for january: when the selected month is 'january' (of any year) , the result should be NULL, instead of the YTD until december of the previous year (which is what the formula above gives me).
I have tried with using an iif in the formula that checks on currentmember being the firstchild, but I don't seem to get the required result.
I would be very gratefull for your help!
kind regards
Sylvie