TOTAL
- Last UpdatedMar 20, 2025
- 1 minute read
The TOTAL() function produces a stream of results calculating the time-weighted total for a stream or array of streams.
Syntax
|
Format |
Stream = TOTAL(Stream or ArrayOfStreams) |
|
Arguments |
Stream - A time-ordered vector of values. ArrayOfStreams - An array of streams. See Selecting an array of streams. |
|
Description |
Calculates the time-weighted total for a stream or array of streams during the query period. The query period is based on local time. |
|
Format |
Stream = TOTAL(Stream or ArrayOfStreams, TimeInterval) |
|
Arguments |
Stream - A time-ordered vector of values. ArrayOfStreams - An array of streams. See Selecting an array of streams. TimeInterval - The time interval over which value totals are calculated. |
|
Description |
Calculates the time-weighted total for a stream or array of streams over the specified time interval during the query period. The query period is based on local time. The returned start time is rounded down to the time interval's unit. For example, if the interval is hourly, the time stamps of all values end with "00:00.000". |