NonEmptyCount

Returns the count of the number of tuples in a set that evaluate to non #Missing values.

Syntax

NonEmptyCount ( set [,numeric_value_expression ] )
ParameterDescription

set

The set in which to count tuples.

numeric_value_expression

Optional expression (see MDX Grammar Rules).

Notes

Each tuple is evaluated and included in the count returned by this function. If the numeric value expression is specified, it is evaluated in the context of every tuple, and the count of non #Missing values is returned.

Example

The following query

With 
Member [Measures].[Number Of Markets]
as 'NonEmptyCount (Market.Levels(0).Members, Sales)'

Select 
{[Measures].[Number Of Markets]} on Columns,
{[100].Children, [200].Children} on Rows
FROM Sample.Basic

Returns the grid:

(axis)Number of Markets
100-1020
100-2016
100-308
200-1020
200-2017
200-309
200-403