I found the example above to be uninformative. Heres a sample of MDX code I've used (in SSRS) to calculate the Linear Regression of the Income measure for the filtered set of Years:
Calculated Measure #1: RankYears:
Rank ( [Time].[Year].CURRENTMEMBER , NONEMPTY ( [Time].[Year].CURRENTMEMBER.LEVEL.MEMBERS , [Measures].[Income] ) )
Calculated Measure #2: Linear Income
LinRegPoint( [Measures].[RankYears]
, NONEMPTY ( [Time].[Year].CURRENTMEMBER.LEVEL.MEMBERS , [Measures].[Income] )
,
↧