Returns: A number.
The following example uses the VarP function to return the standard variance of the number of items evaluated over the days in a month for each month in the year 2002, using the biased population formula.
WITH
MEMBER [Price Analysis].[Measures].[VarP(Number Of Items)]
AS VarP(Descendants([Price Analysis].[Time].CurrentMember, -1, LEAVES),
[Price Analysis].[Measures].[Number Of Items])
SELECT {[Price Analysis].[Measures].[VarP(Number Of Items)]}
ON AXIS(0),
{Descendants([Price Analysis].[Time].[All Time (Calendar)].[2002],
[Price Analysis].[Time].[Calendar Month Level (Price Analysis)])}
ON AXIS(1)
FROM [Price Analysis]
| Time | VarP(Number Of Items) |
|---|---|
| 1 | 26865.444 |
| 2 | 10040.91 |
| 3 | 1519.68 |
| 4 | 1492.515 |
| 5 | 967.54 |
| 6 | 1965.468 |
| 7 | 1779.173 |
| 8 | 3758.16 |
| 9 | 2091.957 |
| 10 | 1415.591 |
| 11 | NaN |
| 12 | NaN |