NumericCount() returns the number of numeric values found in the expression, as defined by a group by clause.
Return data type: integer
|expr Expression||The expression or field containing the data to be measured.|
|distinct||If the word distinct occurs before the expression, all duplicates are disregarded.|
Examples and results:
Add the example script to your app and run it. Then add, at least, the fields listed in the results column to a sheet in our app to see the result.
To get the same look as in the result column below, in the properties panel, under Sorting, switch from Auto to Custom, then deselect numerical and alphabetical sorting.
LOAD * inline [
] (delimiter is '|');
LOAD Customer,NumericCount(OrderNumber) as NumericCountByCustomer Resident Temp Group By Customer;
|LOAD NumericCount(OrderNumber) as TotalNumericCount Resident Temp;||The second statement gives:
in a table with that dimension.
Given that the Temp table is loaded as in the previous example:
LOAD NumericCount(distinct OrderNumber) as TotalNumeriCCountDistinct Resident Temp;
Because there is one OrderNumber that duplicates another, so the result is 6 that are not duplicates..