Creating a Calculated Cumulative Indicator

A cumulative indicator is an indicator that tracks a value that increases over time. For example, an odometer is cumulative. Today’s reading will always be higher than yesterday’s reading. A cumulative indicator can be read as either an accumulated value (the value over the lifetime of the indicator) or as a consumed value (the difference from the last reading).
The value of cumulative indicators can also be determined using a formula. You can set up this formula in the same way as for other numeric calculated indicators. The way in which the calculated value is used depends on whether the indicator has been set up as an accumulated value (for example, an odometer) or a consumed value (for example, a trip meter).
If the indicator is set up as an accumulated value, then each time the calculation is triggered and a new reading is created, the indicator’s life-to-date value is reset to the value calculated by the formula. For example, if the result of the calculation is 2,000 km, then the life-to-date value for the indicator is set to 2,000 km.
On the other hand, if the indicator has been defined as a consumed valued, each new reading represents only the change since the last reading was taken. Therefore, the value calculated by the formula is added to the indicator’s current life-to-date value. For example if the calculated value is 10 km and the indicator’s current life-to-date value is 2,000 km, the new life-to-date value is 2,010 km.
This topic explains how to create a calculated cumulative indicator. For more information on calculated indicators, see Introduction to Calculated Indicators.

To Create a Calculated Cumulative Indicator

1.
Open the asset that needs the indicator. Select the Inspection Management view, Indicators tab.
2.
Click New. The Create New Indicator dialog appears.
3.
Select From scratch and click OK.
4.
5.
On the Properties view, General tab:
Select a cumulative indicator type from the Indicator type list. The window changes to reflect the value type.
6.
7.
In the Collection method list, select “Calculated using a formula.” The Calculation tab is added to the window. For example:
8.
On the Collection tab, you can enter values that determine how often readings are expected and the next collection date. You can also enter information to make it easier to select this indicator when adding indicators to a work order task or standard task, when copying indicators to another asset, when setting up dynamic inspection routes, or when implementing reliability programs.
If you are creating the indicator from a strategy development analysis (MTA2, RCM2, RBI, CPR), the searching values (frequency, regulatory frequency, trade, operating condition, maintenance group, and technology) are automatically copied from the associated action plan, if the analysis’ indicator settings allow it. In this case, you need only verify the values.
Note: Any changes that you make to the searching values are not copied to the indicator’s associated action plan.
Review and select values, as appropriate:
Tip: If the technology is linked to an asset type that is used to collect indicator readings, you can identify the measurement device on indicator readings and checksheets.
9.
The target value is displayed on charts and dashboards that show readings for the indicator. In this example, the target line appears as a red dotted line on charts:
10.
Select the Daily Average tab to select how APM tracks the indicator’s daily average.
11.
To specify the months during which readings should be taken, select the Seasonal tab. Click Indicator is collected seasonally and select the starting and ending dates. For example:
Reading due dates will reflect the seasonal settings.
12.
On the Description tab, you can enter a detailed description of the indicator and what it measures. On the Image tab, you can also paste an image into the box.
13.
On the Meter tab, you can set the measurement type and roll-over value or daily maximum values for the indicator. This is the same as setting these options on a regular cumulative indicator.
14.
If necessary, you can enter initial values for the indicator (for example, the current odometer reading). To do this, click Enter Initial Values. Complete the Enter Initial Values for an Indicator dialog, as you would for a regular cumulative indicator.
15.
Select the Calculation tab.
16.
On the Expression tab, select the type of expression. A calculated indicator can be based on:
VB.NET – Inputs and functions defined on the Calculation tab can be used to create a formula that is calculated at run time. This is the default option
C# – Inputs and functions defined on the Calculation tab can be used to create a formula that is calculated at run time
Stored procedure – The expression is provided in a stored procedure that receives its inputs at runtime and returns a value
17.
With the Complete class option, a starter script template is provided automatically, which you can edit as needed. You can also click Regenerate from Template to reset the formula to the starter script.
The template scripts include DebugData statements that you can augment to output trace messages when the Check (Test) or Check (Live) method is invoked to test the calculation.
Tip: You can view the template scripts by opening the Enterprise window, clicking the Administration menu and then Calculation options. For more information, see Defining Calculation Options.
18.
If you are entering a function, see Using Logical Operators and Functions.
If you are using a formula, you can use three elements:
Example:
To enter a calculation that takes the average of two indicators, you would type:
(Indicator1 + Indicator2) / 2
The variables “Indicator1” and “Indicator2” are placeholders for data from asset indicators. When the calculation is evaluated, APM gets the current values of the indicators.
19.
Provide the name of the stored procedure.
20.
From the New list select either Indicator Input or Filter Input. The Calculation Input dialog appears. For detailed instructions, see:
21.
Click OK when you have finished creating the input. The Calculation Input dialog closes and the input is added to the table of inputs.
22.
For VB.NET or C# script expressions, you can check the syntax (the order of the elements) of your calculation by clicking Calculate on the Expression tab. When you click this button, the system looks for errors in how you typed the calculation. In addition, the system uses the test values on the inputs to complete a test calculation. You can use the result of this calculation to check that the expression is giving the desired results.
23.
When you have defined the calculation expression and inputs, you can click Check (Test). The test function uses the values from the inputs (for example, indicator readings) and displays the result in the Test Reading window.
24.
25.
If necessary, you can change the Required Proximity of the calculation inputs. This option appears at the bottom of the Expression tab when you have defined two or more inputs based on readings.
26.
Select the Frequency tab. In the Triggering mechanism section, select when and how the system will trigger the calculation. If the calculation is to be triggered at a regular interval (based on a recurrence pattern), define the scheduled interval for the indicator.
For detailed instructions, see Defining an Indicator’s Calculation Frequency.
27.
Select the Auditing tab. To improve product performance, you can control the amount of audit information generated when a reading is created. (The audit information is displayed in the Indicator Reading window, Calculation tab.)
Full auditing – Full information is displayed on the reading’s Calculation tab
Description and input values – The reading’s Calculation tab displays the description and input values in the text field. The table of input values is not displayed
No auditing – The reading’s Calculation tab is not displayed
28.