MissingCount - chart function
MissingCount() is used to aggregate the number of missing values in each chart dimension. Missing values are all non-numeric values.
Syntax:
MissingCount({[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 |
---|---|
MissingCount(OrderNumber) |
Returns the number of missing values where OrderNumber fields are empty.
Information note"0" counts as a value and not an empty cell. However, if a measure aggregates to 0 for a dimension, that dimension will not be included in charts. |
MissingCount(OrderNumber)/MissingCount({1} TOTAL OrderNumber) | The expression returns the number of incomplete orders from the selected customer as a fraction of incomplete orders from all customers. |