Here is an example for the Sales Cube of Foodmart, using LinRegPoint to
project Sales for the next month, based on the trailing 6 months
(selected month included). It can be modified to 12 months, but Sales
Cube only has 1997 data:
Member Measures.SalesTrend as
'LinRegPoint( 7, LastPeriods(6) as Trailing6,
[Measures].[Store Sales],
Rank(Time.CurrentMember, Trailing6) )'
Select
{ [Measures].[Store Sales], Measures.SalesTrend }
on Columns,
{ [Time].[1997].[Q2].[6] :[Time].[1997].[Q4].[11]}
on Rows
from Sales
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!