Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Insight

TOTALS

  • Last UpdatedMar 03, 2025
  • 1 minute read

The TOTALS() function produces a stream of results calculating the statistical total for a stream.

When using TOTALS() in a query, if no resolution is specified then the query returns an error.

Syntax

Format

Stream = TOTALS( Stream, TimeInterval )

Arguments

Stream - A time-ordered vector of values

TimeInterval - The time interval over which value totals are calculated

Description

Calculates the statistical total for a stream over the specified time interval. The start/end times are rounded to the start/end times of the interval.

Example 1

The following expression returns the calculated statistical total volume flowing through a pump over a 10 minute interval.

TOTALS(Pump102.Flow, 10 minute)

Example 2

The following expression returns the calculated statistical total volume for all streams with a tag name that includes "Flow" over a 10 minute interval.

TOTALS(SELECT("TagName","Flow"), 10 minute)

Example 3

The following expression returns the calculated statistical total energy produced by a turbine over the query period.

TOTALS(Turbine306.Output)

Example 4

The following expression returns the calculated statistical total energy for all streams with a tag name that starts with "Turbine" and ends with ".Output" over the query period.

TOTALS(SELECT("TagName","Turbine*.Output"))

In This Topic
TitleResults for “How to create a CRG?”Also Available in