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: Var
Category: Statistical
Description: The Var function uses the unbiased population formula to return the sample variance of a numeric expression that is evaluated over a supplied set.
Syntax: VAR( «Set»[, «Numeric Expression»] )
Technet Link: MDX Var Function

The query below returns the sample variance for Sales Amount across all State-Province members using the unbiased formula.
      MEMBER [Measures].[V] AS
      VAR([Geography].[Geography].[State-Province].Members, [Measures].[Sales Amount])
      {[Measures].[V]} ON COLUMNS
      [Adventure Works]


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