Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

MDX Statement and Calculated Measure showing different outcomes

$
0
0
Hi,I wrote a series of MDX statements to find a total figure. I was happy it work regardless of what filters were being applies and what was on the Column and Row axis.the formula was:WithMEMBER [Measures].[_ReferencePeriodTotal]as 'Sum([Advance Period].Period.FirstSibling:[Advance Period].Period.LastSibling,[Measures].[ReferencePeriod])'However when I then went into Business Inteligence Design Studio and created it as calculation called ReferencePeriodTotal (Note no underscore) in the Measures dimension using Sum([Advance Period].Period.FirstSibling:[Advance Period].Period.LastSibling,[Measures].[ReferencePeriod])It seems to work for the past but for future dates if i put [Advance Period].Period.AllMemeber in the Row axis it seems to be calcualting it differently.I've even put the two calulations in the same MDX query window and the MDX Member works as expected and the Calculated one seems to be showing just the total for the day.I really don't know what the difference is between the two ways of creating the calcualtion so any guidance to aid my investigation is really very welcome.ThanksGiles

Viewing all articles
Browse latest Browse all 1341

Trending Articles