Rollup and Use Request Rollup properties on the DataSourceBlock configure the rollup function and apply it when a trend request specifies an interval other than the interval used to collect
the history data. Together they determine how to combine multiple sequential records in the history data into less granular
intervals. For example, if the history Interval is 15 minutes and the trend request Interval is set to hour, the rollup function combines the four 15-minute records from each hour into a single hourly result.
When the Use Request Rollup value on the DataSourceBlock is false and the Rollup property on the block is not configured, the DataSourceBlock uses the rollup function defined in the applicable Data Definition, unless there is no Data Definition, in which case the block uses the default First function. When the Use Request Rollup value is false and the Rollup property is configured, the block uses the Rollup property value.
When the Use Request Rollup value is true, the block uses the rollup function defined in the request (analytic proxy extension, analytic binding, etc.), unless the
request does not specify the rollup function, in which case the block uses the algorithm's Rollup property value.
The following table is an example of how the actual rollup function used can vary depending on how you configure the Rollup properties.
| DataSourceBlock | Data Definition | Request | Algorithm | Actual | |
|---|---|---|---|---|---|
Use Request Rollup
|
Rollup |
Rollup |
Rollup |
Rollup |
rollup function used by the algorithm |
| false | not configured | not configured | Sum | Max | First (default) |
| false | Last | not configured | Sum | Max | Last |
| false | Last | Avg | Sum | Max | Avg |
| true | Last | Avg | Sum | Max | Sum |
| true | Last | Avg | not configured | Max | Max |