Creating Calculation Inputs Based on Other Reading Data

You can include data other than indicator readings as an input to a calculation. For example, you might want to use an indicator reading’s collection date in a calculation so that you can determine the length of time that has elapsed between two readings.
Note: Users who want to use inputs other than indicator readings as calculation inputs should have a basic understanding of object-oriented modeling concepts, as well as knowledge of the APM object model as it relates to indicator readings.
If your input is based on an indicator reading, you can select any eligible attribute (field) on the Indicator Reading class itself or on any class that is related to it through a single-cardinality relationship. For example, you could select an attribute on the asset that owns the indicator. You can select attributes from classes related through a single-cardinality relationship:
The following graphic illustrates examples of classes related to the indicator reading class:
Similarly, for filter-type inputs, you can select any eligible attribute from the class you are filtering or from any class related to it through a single-cardinality relationship.
Eligible attributes on which inputs can be based are:
For more information about relationships and attributes, see Relationship Types, and Data Types.
To learn more about the APM object model, see Object Model Overview.
This topic explains how to create an indicator reading-based calculation input that uses data other than the indicator reading value. To create a regular indicator reading-based input, see Creating Calculation Inputs Based on Indicator Readings.

To Create a Calculation Input

1.
2.
3.
Select the Calculation tab. This tab shows the formula to be used for the indicator and any existing calculation inputs.
4.
To create a calculation input based on an indicator, click New. The Calculation Input dialog appears. For example:
If the input is for an indicator template, the Asset number and Description boxes are not available.
5.
In the Input name box, type the name of the corresponding variable in your calculation, for example, “Input1”.
6.
In the Description box, enter a detailed description of the indicator this variable represents.
7.
Note: On indicator templates that have reading-based calculation inputs, you can only use other indicator templates in your calculation. When you use the template to create an indicator or KPI, you will need to reset the calculation inputs so that they use the correct asset indicators.
8.
Beside the Asset number box, click the browse icon. The Asset Selector dialog appears. Select the asset that owns the indicator and click OK.
Select an indicator from the Indicator to use list.
9.
Select an option in the Number of readings to use area:
Use the last reading only: The value of the indicator’s most recent reading is used in the calculation.
Include the last [n] readings: This setting allows you to indicate the specific number of readings that you want to include to derive the input’s value (for example, use the last 10 readings).
Readings collected: This setting allows you to specify a moving time period from which all of the readings entered will be used to derive the input’s value (for example, readings collected this month, this week, in the last 10 days, and so on) The possible choices are:
10.
Select the Attribute Info tab.
On this tab you can select the data that you want to use for the input. The Aggregation type options are available when more than one reading is involved.
11.
If you want the input value to be based on an attribute that does not belong directly to the Indicator Reading class but to a class that is related to it, you can identify the relationship to the other class in this box. The relationship is specified using a join-path. Click in the Relationship from box. The Select Join Path dialog appears. Select the class in the hierarchy that owns the attribute you want to use and click OK. For example, to pick an attribute from the Asset that owns the indicator, open the Indicator to Read class and then select Asset. The attributes for the selected class now appear in the Attribute list.
12.
13.
14.
If you want to sort the list by an attribute that belongs to a related class, you can specify the join-path for the relationship here. Click in the Relationship from box. The Select Join Path dialog appears. Select the class in the hierarchy that owns the attribute you want to use and click OK.
15.
Select the Test Value tab. For example:
You can test the calculation by clicking the Check (Test) button on the Calculation tab of the Indicator window.
16.