Home      Functions     Common Solutions      Contact     

MDX Functions:
MDX Functions

Common Solutions

Common Solutions
Resource Links

MDX Books
MDX Related Software
MDX Related Blogs
Other Links

Contact Us
Microsoft SQL Server Analysis Services Function Page
Function Name: LinRegSlope
Category: Statistical
Description: The LinRegSlope function calculates the linear regression for the supplied set and returns the slope in the regression line (y = ax + b).
Syntax: LINREGSLOPE( «Set», «Numeric Expression»[, «Numeric Expression»] )
Technet Link: MDX LinRegSlope Function

The query below returns the slope values for the Month members for the FY 2003 member.
      MEMBER Measures.[OrderCountSlope] AS
      [TimeSet], [Measures].[Order Count], RANK([Date].[Fiscal].CurrentMember, [TimeSet]))
      {[Measures].[OrderCountSlope]} ON COLUMNS,
      DESCENDANTS([Date].[Fiscal].[FY 2003], [Date].[Fiscal].[Month]) ON ROWS
      [Adventure Works]


Copyright 2008 by MDXpert.com.
Terms of Use                              Privacy Statement
Site Powered By - WinHost.Com