|
Introduction to Performance Indicators
What Are Key Performance Indicators?
Percentage = (Number of completed work orders where the planned completion date was in the last month) ÷ (Total number of work orders where the planned completion date was in the last month) x 100
Performance Indicator Formulas in Stored Procedures
Performance Indicator Formulas in VB.NET or C# Scripts
• Calculation inputs: data from another numeric, cumulative, descriptive, or rule-based asset indicator; data from the current calculated indicator; or data derived from an APM object (for example, a count of work orders or the dates when indicator readings were entered)
• Mathematical functions: such as add, subtract, multiply, or divide
• Constants: a fixed value used in the calculationCalculation Inputs
• Based on indicator reading(s): data from an asset indicator
• Based on a filter: data derived from one or more APM objects (for example, the total number of work orders based on a selected work type)This section discusses filter-based inputs in the context of performance indicators. To learn more about indicator reading-based inputs, see Introduction to Calculated Indicators.Filter-Based Calculation Inputs
Count-Type Inputs
Percentage = (Number of completed work orders where the planned completion date was in the last month) ÷ (Total number of work orders where the planned completion date was in the last month) x 100Aggregating Filter-Based Inputs
The same result could also be achieved using a more complex formula with a different aggregate type:Using Numeric and Non-Numeric Data Types as Inputs
•
•
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.How Calculation Inputs are Used in VB.NET and C# Scripts
Aggregation Types
Array Aggregation
First Aggregation Type
Last Aggregation Type
Filtering Criteria
You can use filters to create a subset of a group of items for a table configuration, a calculation input in an indicator, a purging rule, or a download configuration for a remote computer. Each filter can be composed of multiple criteria. For each filtering criterion, consider the following:Boolean Logic for Table Configurations and Calculated Indicators
Logical Operators and Filter Groups
When you use more than one filtering criterion, you must establish the relationship between them. APM supports two Boolean operators: AND and OR.
• Criteria 1 is “work orders where the Planner is Jane Smith”.
• Criteria 2 is “work orders created in the last month”.These criteria are based on different attributes (Planner and Creation Date). Therefore, the system uses the AND operator. The result is a list of work orders that were created by Jane Smith.You cannot change the operator used between groups, but you can change it when working with criteria within a group. For example, you may want to see work orders created by both Jane Smith and Jacky Lee:
• Criteria 1 is “work orders where the Planner is Jane Smith”.
• Criteria 2 is “work orders where the Planner is Jacky Lee”.If you use the OR operator between these criteria, you get a list of work orders created by both Jane Smith and Jacky Lee. Usually, criteria for the same attribute use the OR operator.Order of Operations
If you have multiple criteria in one filter group, the order in which you arrange the filtering criteria also affects the results. When there are three or more filtering criteria, APM uses the order of operations rules to determine the order in which to evaluate them. Criteria from the same filter group are evaluated together, with criteria that are connected with the AND operator evaluated before OR operators.Units of Measure and Calculations
Integers and Averages
Units of Measure
Functions in VB.NET and C# Scripts
VB.NET
C#
Calculation Inputs and Argument Names
Function Examples
Using a String in a Calculation
VB.NET
C#
Using an Enumerated Attribute in a Calculation
•
•VB.NET
C#
Using a Boolean Attribute in a Calculation
VB.NET
C#
Using an Array in a Calculation
VB.NET
C#
Number of Values in an Array
VB.NET
C#
Using a Date Attribute in a Calculation
VB.NET
C#
KPIs in a Multiple-Currency Environment
Cumulative and Descriptive KPIs
Triggering a Calculation
What Happens When the Calculation is Triggered?
Performance Indicator Alarms
Indicator Types for Performance Indicators
Performance Indicator Templates
Asset Reliability Process Elements and KPIs