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

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

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

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