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

The query below returns the sample covariance of Order Quantity (x) and Freight Cost (y) across Product members.
      MEMBER [Measures].[CoVar] AS
      COVARIANCEN([Product].[Product].Members, [Measures].[Freight Cost], [Measures].[Order Quantity])
      {[Measures].[CoVar]} ON COLUMNS
      [Adventure Works]


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