Calculations
XLReporter Calculations are performed over each Interval for the Period defined in the Time Period tab.
The calculations are based on either raw or sampled values using a Connector to identify the historian, sampled values being the preferable method. For example, suppose a calculation is required from a historian that is logging every second. If raw retrieval is used then 86400 samples will retrieved for the calculation whereas if sampled retrieval (every minute) is used then this is reduced to 1440. Raw retrieval is more accurate, sampled retrieval is faster.
Before the calculations are performed, the samples are filtered using the settings on the Filter Tab.
Calculations are either raw or weighted. For raw calculations, the actual sample value is used. For weighted calculations, the derived samples value (from a stepwise curve) and the length of time is used. Typically for process values weighted is used.
For example, t0 to t1 represents an Interval and 3 values are recorded as shown.
![]() |
The raw average for the Interval is 20 + 30 / 2 = 25. The time weighted average using the stepwise curve (shown in dashes) is (10 * 2 + 20 + 30) / 4 = 17.5. Note the propagation of the 10 into the interval.
When browsing for items in a group that supports calculations, the Calculations dialog appears allowing you to select one or more calculations to apply to every item selected. When a calculation is checked, the label has a number appended to it. This number indicates the order of the calculations for each selected item.
If a calculation has already been set, when browsing to change the calculation, the Replace calculation in all matching rows is available.
![]() |
When this option is selected and OK is clicked, any row in the group that is set to the original calculation set when the dialog was opened is updated with the new calculation selected. For example, if the row was originally set to minimum and you re-browse, select maximum and check the Replace calculation in all matching rows option, on OK any row that was set to minimum is now set to maximum.
General
Interpolated
The first interpolated sample in the interval.
First Sample
The first sample in the interval.
Time of First Sample
The timestamp of the first sample in the interval.
Last Sample
The last sample in the interval.
Time of Last Sample
The timestamp of the last sample in the interval.
Maximum
The largest sample in the interval.
Time of Maximum
The timestamp of the largest sample value in the interval. If the largest sample occurs multiple times over the interval, the timestamp returned is the first occurrence of the maximum in the interval.
Minimum
The smallest sample value in the interval.
Time of Minimum
The timestamp of the smallest sample value in the interval. If the smallest sample occurs multiple times over the interval, the timestamp returned is the first occurrence of the minimum in the interval.
Count
The count of the number of samples that satisfy the specified Condition.
Integral
The weighted total, based on fractions of the day, multiplied by the Scaling.
Average
The average of the samples in the interval.
![]() |
Total
The total of the samples.
Standard Deviation
The standard deviation of the samples in the interval.

Variance
The variance of the samples in the interval calculated as the square of the standard deviation. See Standard Deviation.
The variance is a measure of how far a set of values is spread out from the average. A value of 0 indicates that the values are identical to the average, whereas a small variance indicates that the values are close to the average.
Good Quality
The count or percentage of samples with good quality in the interval.
Accumulation
The accumulation is a running total of the samples in the interval.
First Accumulation
The accumulation of the first sample in each interval.
Last Accumulation
The accumulation of the last sample in each interval.
Difference
The difference is used to calculate consumption from energy meters and totalizers. The Type setting of indicates if the value is rising (energy meter) or falling (weigh scale). The Rollover setting is used if the value resets when it reaches a specific value. If the value does not reset, set this to 0. The Reset indicates what the value is set to when the Rollover setting is reached. The Calculate by setting defines how the difference is calculated.
First Difference
If Calculate by is prev. value, for each interval, this calculates the difference between the first sample of the current interval and the first sample of the previous interval.
If Calculate by is next value, for each interval, this calculates the difference between the first sample of the next interval and the first sample of the current interval.
First Accumulated Difference
If Calculate by is prev. value, for each interval, this calculates the accumulated difference between the first sample of the current interval and the first sample of the last interval.
If Calculate by is next value, for each interval, this calculates the accumulated difference between the first sample of the next interval and the first sample of the current interval.
Last Difference
If Calculate by is prev. value, for each interval, this calculates the difference between the last sample of the current interval and the last sample of the previous interval.
If Calculate by is next value, for each interval, this calculates the difference between the last sample of the next interval and the last sample of the current interval.
Last Accumulated Difference
If Calculate by is prev. value, for each interval, this calculates the accumulated difference between the last sample of the current interval and the last sample of the last interval.
If Calculate by is next value, for each interval, this calculates the accumulated difference between the last sample of the next interval and the last sample of the current interval.
Advanced
Mean Kinetic Temperature
The Mean Kinetic temperature (MKT) is a simplified way of expressing the overall effect of temperature fluctuations during storage of transit of perishable goods. The Actn.kJ/mol setting is the heat activation, default to 83.144 kJ/mol. The Temp.Unit is the unit of temperature.

Sample Analysis
The sample analysis calculations are provided to evaluate the behavior of process values like temperatures and pressures over a period of time.
Up to two Conditions can be specified in order to restrict how the values are considered. In addition, a Deadband can be specified so that if a sample value has not changed by the absolute value or percentage specified, it is not considered as part of the calculation.
Sample Count
The count of the samples that satisfied the Condition(s) and Deadband specified.
Sample Duration
The amount of time the samples that satisfied the Condition(s) and Deadband specified. This can be expressed as a number of days or as a percentage of the entire interval.
Performance Analysis
Performance Analysis is used to calculate utilization and performance such as the number of times and the duration a signal is in/out of specified conditions e.g., SPEED>0. The calculations are performed on either raw samples or samples derived from a stepwise curve. Note, the duration calculations can only be performed with samples derived from a stepwise curve.
For the State calculations, up to two Conditions can be specified in order to restrict how the values are considered. In addition, a Deadband can be specified so that if a sample value has not changed by the absolute value or percentage specified, it is not considered as part of the calculation.
Sample Count
The count of how many times a value satisfied the Condition(s) and Deadband specified.
Sample Duration
The amount of time the value satisfied the Condition(s) and Deadband specified. This can be expressed as a number of days or as a percentage of the entire interval.
ON Count
Count of how many times the value changed from 0 to non-zero (rising edge). By default, values less than 0.5 are considered off, and values greater than 0.5 are considered on.
OFF Count
Count of how many times the value changed from non-zero to 0 (falling edge). By default, values less than 0.5 are considered off, and values greater than 0.5 are considered on.
ON Duration
Amount of time value is non-zero. This can be expressed in days or as a percentage of the entire interval. By default, values less than 0.5 are considered off, and values greater than 0.5 are considered on.
OFF Duration
Amount of time value is zero. This can be expressed in days or as a percentage of the entire interval. By default, values less than 0.5 are considered off, and values greater than 0.5 are considered on.
Availability
The amount of time the value is 0 expressed in days.
Energy
Energy Management calculates the energy release/emissions produced by the consumption of various fuels.
Produced Energy
The energy is calculated for a Fuel Type (gas, coal, petroleum) in the specified Energy (KWhr, KCal, MCal, MJ, GJ, BTU).
Produced Emission
The emission is calculated for a Fuel Type (gas, coal, petroleum) for the specified Gas (CO2 – carbon dioxide)
For more information see http://www.eia.gov/tools/faqs/faq.cfm?id=82&t=11
Pulse Analysis
Pulse analysis calculates “peak” and “valley” information about a value. Momentary changes in the signal can be filtered from the calculation by specifying an optional Deadband in terms of an Absolute change in the value or a Percent change.
Pulse Count
Count of the number of pulses for a specified pulse type (positive or negative) and Threshold. For example, if the pulse Type is positive and the Threshold is 80, then the Pulse Count increments for the complete cycle of increasing beyond 80 and the decreasing below 80.
Pulse Maximum
Maximum value of all the positive pulses only.
Time of Pulse Maximum
The timestamp when the Pulse Maximum occurred.
Pulse Minimum
Minimum value of all negative pulses only.
Time of Pulse Minimum
The timestamp when the Pulse Minimum occurred.


