A system administrator wants to reuse common KPI queries
to quickly create multiple KPIs.
About this task
A system administrator, John, works for a large manufacturing
company, which has three sites: Boston, Miami, and Detroit. Work supervisors
want John to create KPIs so that they can monitor incomplete work
orders in each of the sites. John can make the site a variable in
the query so that he can use the same KPI template to create KPIs
for each site. After he creates the KPI template, he can update it
later.
Procedure
- In the KPI Templates application, create a KPI template.
- In the Application field, select WOTRACK.
- Specify the decimal calculation.
- Enter the following KPI query:
select count(wonum) from workorder where status not in ('COMP', 'CLOSE')
and istask = 0 and targstartdate < sysdate and siteid=${mysiteid}
- To define variables for the KPI query, in the KPI Variables
section, click New Row.
- In the Variable Name field, enter mysiteid.
- In the Object field, select WORKORDER.
- In the Attribute field, select SITEID.
- Create the KPIs.
- In the KPI section, click New Row and
enter the target, caution, alert values for the KPI that you want
to create for the Boston site.
- In the Variable Values section, enter BOSTON as
the value for the mysiteid variable.
- In the KPI section, click New Row and
enter the target, caution, alert values for the KPI that you want
to create for the Miami site.
- In the Variable Values section, enter MIAMI as
the value for the mysiteid variable.
- In the KPI section, click New Row and
enter the target, caution, alert values for the KPI that you want
to create for the Detroit site.
- In the Variable Values section, enter DETROIT as
the value for the mysiteid variable.
- Save the KPI template and click Generate KPIs.
You can access the generated KPIs in the KPI Manager application.