COUNT

Description

Counts the number of entries on a vector, grouped scalar, or grouped vector.

COUNT(Vector<any>)

COUNT(vector: Vector<any>): Scalar<Number>

Count the entries of the given Vector<any>.

Parameters

Parameter
Description

vector

A vector of type <any>

Returns

Returns how many elements are within the given vector as Scalar<Number>


COUNT(GroupedScalar<any, any>)

COUNT(group: GroupedScalar<any, any>): Scalar<Number>

Count the entries of the given GroupedScalar<any, any>.

Parameters

Parameter
Description

group

A GroupedScalar of type <any, any>

Returns

Returns how many elements are within the given group as Scalar<Number>


COUNT(GroupedVector<any, any>)

COUNT(group: GroupedVector<any, any>): Scalar<Number>

Count the entries of the given GroupedVector<any, any>.

Parameters

Parameter
Description

group

A GroupedVector of type <any, any>

Returns

Returns how many elements are within the given group as Scalar<Number>


Examples

Count the elements within the GridPowerConsumption time series.

COUNT($GridPowerConsumption)

Last updated

© 2023 MOOST AG