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: LinRegIntercept
Category: Statistical
Description: The LinRegIntercept function calculates the linear regression for the supplied set and returns the x intercept in the regression line (y = ax + b).
Syntax: LINREGINTERCEPT( «Set», «Numeric Expression»[, «Numeric Expression»] )
Technet Link: MDX LinRegIntercept Function

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