IsaacBS


Anybody knows how to apply an inflation factor depending on the date to a measure in Analysis Services 2005

The Inflation Factor is (Current Month Rate / X Month Rate)

So lets say for current year the rates are

Jan 121.64

Feb 121.98

March 122.244

April 122.171

For example

If I want to calculate for March I would show a column for January February and March, the column for January would be multiplied by (122.244/121.64) the column for February would be multiplied by (122.244/121.98) and march by one (122.244/122.244)

But in April the factors would be different I would have 4 columns, January February March and April, January amounts would be multiplied by (122.171/121.64) February by (122.171/121.98) March by (122.171/122.244) and April by one (122.171/122.171)


Im using SSAS 2005

Thanks in advance

Isaac




Re: inflation factor in Analysis Services 2005

Bryan C. Smith


I don't think this is what you are after, but maybe it is ( ):

Code Block

with member [Measures].[x] as

([Date].[Calendar].CurrentMember,[Measures].[Reseller Sales Amount])/([Date].[Calendar].CurrentMember.PrevMember,[Measures].[Reseller Sales Amount])

,format_string="0.00%"

select

{[Reseller Sales Amount],[x]} on 0,

[Date].[Calendar].[Month].Members on 1

from [Adventure Works]

;