MDX query for calculating trend

With
Member [Measures].X AS
 
‘Rank(Time.Calendar, [Calendar Month].Members)’
 
Member Measures.Trend AS
 
‘LinRegPoint(X,[Calendar Month].Members, [Sales Dollars], x)’
 
SELECT
 
{[Sales Dollars],X,Trend} on Columns,
[Calendar Month].Members on Rows
 
From Sales
 
<end query>
 
I bolded the expressions that can be used in the BM Builder for calculating trend.
 
~Laura
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s