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: LinRegR2
Category: Statistical
Description: The LinRegR2 function calculates the linear regression of a supplied set and returns the R2 value (coefficient of determination).
Syntax: LINREGR2( «Set», «Numeric Expression»[, «Numeric Expression»] )
Technet Link: MDX LinRegR2 Function

The query below returns the R-squared value for the Month members for the FY 2003 member.
      MEMBER Measures.[OrderCountR2] AS
      [TimeSet], [Measures].[Order Count], RANK([Date].[Fiscal].CurrentMember, [TimeSet]))
      {[Measures].[OrderCountR2]} 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