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




The query below returns the sample variance for Sales Amount across all State-Province members using the biased formula.
 
WITH
      MEMBER [Measures].[Vp] AS
      VARP([Geography].[Geography].[State-Province].Members, [Measures].[Sales Amount])
SELECT
      {[Measures].[Vp]} ON COLUMNS
     
FROM
      [Adventure Works]
 
 

 
 

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