This function computes the number of the values in an array.
Parameter
a - A Double array.
Return value
The return value is an Integer.
Examples
Count([11.2, 15.4, 13.7, 16.9, 15.2, 14.8, 10.6])
Count([-20.4, -26.4, -68.7, -84.1])
The function is used to count the number of values referred to by the argument.
Parameter
a - Values of DBField or formula field.
Return value
Returns a Number type value.
Examples
Number x = Count(@dbfield)Number x = Count(@formula)The function is used to count the number of values referred to by the first argument.
Parameters
Return value
Returns a Number type value.
Examples
Number y = Count(@"Customer Name", @Customers_Region)Number x = Count(@formula, @formula_groupby)Number x = Count(@dbfield, @parametger_groupby)Note: If a field is assigned to a variable, for example x, the variable x will lose the characteristic of representing a group of values. The following formula will then be treated as incorrect.
Number x = @dbfield;
Number y = Count(x); // system will prompt you that there is no such kind of function.