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

The query below returns the population covariance of Order Quantity (x) and Freight Cost (y) across Product members.
      MEMBER [Measures].[CoVar] AS
      COVARIANCE([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