Configuration: KPIs¶
A logbook KPI is a figure calculated from one table of a logbook, such as the total output per product or the average temperature per batch. KPIs are shown on dashboards through a Layout View.
To open a logbook's KPIs, choose Configuration → Logbooks in the Logbooks menu, then KPIs in the logbook's row menu. You need engineering access.
The KPIs page¶
- When the logbook's template has more than one table, pick the Table at the top. Each table in the list shows how many KPIs it has. A KPI always belongs to one table.
- The list shows each KPI of that table: its name, a sentence saying what it calculates, the calculation, the column, the column it groups by and the multiplier.
- Each row's menu has Edit and Delete. Delete asks you to confirm first, and also deletes the values already calculated for that KPI.
If the logbook's template has no tables, add one to the template first (see Configuration: Templates).
Adding or changing a KPI¶
Click Add KPI, or Edit on a row, and fill in:
- Table: the table the KPI reads. It can't be changed when editing.
- KPI name: a name that the table does not already have. It can't be changed once saved; to rename a KPI, delete it and add it again.
- Calculation: Sum, Average, Count, First value or Last value of the column's values.
- Multiplier: each result is multiplied by this number, for example 0.001 to turn kilograms into tonnes. Use 1 to keep the result as it is. It must be greater than 0.
- Column: the column whose values are calculated.
- Group by: one value is calculated for each different entry in this column, for example one per product.
A sentence under the fields shows what the KPI will calculate, for example For each Product: Sum of Output, multiplied by 0.001. Click Add or Save.
The columns are listed by their headings in the template. If a column has been removed from the table since the KPI was set up, the KPI shows it as Column n (no longer in the table). Edit the KPI to pick a column that is still there.