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: Correlation
Category: Statistical
Description: The Correlation function returns the correlation coefficient for x-y variables evaluated over a set.
Syntax: CORRELATION( «Set», «Numeric Expression»[, «Numeric Expression»] )
Technet Link: MDX Correlation Function




The query below shows the correlation coefficient between Internet Order Quantity(x) and Internet Sales Amount (y) across the Date members in the Calendar hierarchy.
 
WITH
      MEMBER [Measures].[CorrCoef] AS
      CORRELATION([Date].[Calendar].[Date].Members, [Measures].[Internet Sales Amount], [Measures].[Internet Order Quantity])
SELECT
      {[Measures].[CorrCoef]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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