Count Value Function

Counts the number of times a particular value occurred.

Syntax

countvalue(TimeSeries, Period, Value, Operator)

Parameter Description

TimeSeries

A node with time series data or another function.

Period

The number of intervals considered in the function.

Value

Sensor value (i.e., pressure, flow rate, etc.)

Operator

=, >, <, <=, >=

Note: These must be inserted inside single quotes: '=', '>', etc.

Example expression

countvalue(@node, 24, 15, '>'): If the Interval is set to hourly, this expression counts the number of hours during the past day that the sensor measured a value greater than 15.

Example chart:

The chart below demonstrates the following expression: countvalue(@FA_level, 24, 15, '<')

It counts the number of times the level sensor dropped below 15 using a 24-hour moving window and an hourly interval.

In this example the TimeSpent function is also shown with an hourly interval set.