Interval count (BIntervalCountBlock)

This block does not have an input slot. It automatically detects the time range and interval from the analytic trend request and outputs the number of intervals for the given time range. The purpose of this object is to distribute a value, such as cost among all rows in a trend being displayed in a chart or table.

If the Interval Count block needs to pass the results as a trend via the Out slot linked to a downstream block, you must change the block’s Makes Trends property its default of false to true.

Figure 130.   Interval Count properties
Image

To view these properties, double-click the block on the Wire Sheet or the block name in the Nav tree.

Property Value Description
Out read-only value slot Outputs a constant value of constant trend based on the value of Make Trends or Makes Trends property, where the value is the calculated interval count.
Makes Trends true or false (default) Controls the processing of trend requests.

false outputs a constant value for both value and trend requests.

true outputs a trend with constant values for trend requests.

Example

Consider a basic algorithm with no DataSourceBlock where the Interval Count block is linked directly to a Result block.

Figure 131.   Interval Count algorithm
Image

A numeric point with an Analytic Proxy Ext that is configured with Data = alg:IntervalCountOnly, time range = yesterday and interval = hour returns a value of 24, indicating there are 24 hourly intervals in the time range of yesterday.

Figure 132.   Interval Count configuration
Image

Consider a more complex algorithm with a data source named Cost, which runs another algorithm to calculate a cost for the requested time range. The Interval Count component calculates the number of intervals in the requested time range, which calculates and displays the cost per interval in a chart or table.

Figure 133.   Cost for requested time range algorithm
Image

Assuming the Cost data source (alg:CostCalculation) returns a value of 24,000 the Analytic Table Binding requests a time range of yesterday (24 hours) with an interval of three hours (8 intervals in the 24 hour time range); the algorithm distributes the cost of 24,000 evenly to each row in the table.

Figure 134.   Analytic Table Binding and output table
Image