ssas - How to sum next periods in MDX -
i've created calculated member sum next periods , it's quite slow. instead if same thing past previous periods lastperiods calculation, runs smoothly. ideas why it's happening? there other function next periods?
with member [measures].[avg dmd bum 4months] avg( {([date].[calendar].currentmember,[measures].[dmd fcst bum]) ,([date].[calendar].currentmember.lead(1),[measures].[dmd fcst bum]) ,([date].[calendar].currentmember.lead(2),[measures].[dmd fcst bum]) ,([date].[calendar].currentmember.lead(3),[measures].[dmd fcst bum]) } )
maybe try more traditional format avg - second argument:
avg( {[date].[calendar].currentmember ,[date].[calendar].currentmember.lead(1) ,[date].[calendar].currentmember.lead(2) ,[date].[calendar].currentmember.lead(3) } ,[measures].[dmd fcst bum] )
you use lag negative numbers , range operator ':'
avg( [date].[calendar].currentmember: [date].[calendar].currentmember.lag(-3) ,[measures].[dmd fcst bum] )
Comments
Post a Comment