Creating a custom KPI¶
KPIs are defined by a formula and filters (at least one filter must be specified in order to calculate a valid KPI). To make line or plant supervisors aware about the status of the KPIs - whether they are on-target or out-of-target in a prescribed time, the concept of absolute or time-related target input is required. The KPI defined in this section is used at runtime using the Calculate KPI Results API. KPIs are only displayed in List mode in order of creation.
To access the "KPI" page, select a smart view in the "Smart View" page, click "Open Smart View" and select the "KPIs" tab.
Prerequisites¶
You have created a smart view and selected a number of measures and attributes.
Important recommendations¶
- It is mandatory to create a KPI formula for custom KPIs. If the KPI formula is not created, these KPIs cannot be used to perform any calculations.
- When you delete a smart view on whose measures, attributes or contexts a custom or standard KPI is based, the KPI is also deleted. If you create a new smart view, you can create custom and standard KPIs with the same name as the KPI related to the deleted smart view.
- If a KPI is used in a KPI event, the KPI cannot be deleted.
Procedure¶
- On the "KPI" page, click "Create KPI".
- Select the "Custom" type checkbox.
- Insert a name (which must be unique within smart views) and a description to provide further information on the KPI.
- In the "Unit of Measurement" field, type the required unit of measurement for the KPI you want to create. The length of this field must not exceed 200 characters. The reverse slash or escape key is not allowed as an input value.
- In the "Value Type" drop-down menu, select "Real" or "Integer". The limits, targets and KPI results are rounded off to the nearest integer value when the Value Type option is Integer.
- (Optional) If you want to define the KPI result range, insert the minimum value of that range in the "Minimum Value" field.
- (Optional) If you have inserted the minimum value, you must insert the maximum value of the KPI result range in the "Maximum Value" field. The maximum value must be greater than the minimum value. The "Save" button is enabled if no values are entered in Minimum Value and Maximum Value fields or if values in a correct format have been inserted for both the options.
- From the "Target Type" drop-down menu, select one of the available options and enter their respective values (see table below).
- To define the time quotient for KPIs, select the "Time related limits/target"checkbox and set the following:
- Unit of Time: (Minutes, Hours or Days).
- Time Value: enter a numeric value.
- Click "Save".
| Target Type | Target Value | Target Criteria Options |
|---|---|---|
| No Target | None | None. For this Target Type, target criteria options and target values are not displayed. |
| Single Target | Target Value | KPI is on Target if: KPI Value \<= Target ValueKPI Value >= Target Value |
| Double Target | Low Target ValueHigh Target Value | KPI is on Target if: KPI Value >= High TargetKPI Value \<= Low TargetLow Target \<= KPI Value \<= High Target |
Last update: October 26, 2026