NullCount - chart function
NullCount() is used to aggregate the number of null values in each chart dimension.
Syntax:
NullCount({[SetExpression][DISTINCT] [TOTAL [<fld {,fld}>]]} expr)
Return data type: integer
Argument | Description |
---|---|
expr | The expression or field containing the data to be measured. |
SetExpression | By default, the aggregation function will aggregate over the set of possible records defined by the selection. An alternative set of records can be defined by a set analysis expression. |
DISTINCT | If the word DISTINCT occurs before the function arguments, duplicates resulting from the evaluation of the function arguments are disregarded. |
TOTAL | If the word
TOTAL occurs before the function
arguments, the calculation is made over all possible values given
the current selections, and not just those that pertain to the current dimensional value, that is, it disregards the chart dimensions. By using TOTAL [<fld {.fld}>], where the TOTAL qualifier is followed by a list of one or more field names as a subset of the chart dimension variables, you create a subset of the total possible values. |
Example | Result |
---|---|
NullCount(OrderNumber) | Returns the count of the null values in the OrderNumber field. |
NullCount (OrderNumber)/NullCount ({1} Total OrderNumber) | The expression returns the number of orders with NULL as the OrderNumber from the selected customer as a fraction of all orders from customers with NULL as the OrderNumber. |