Custom metrics
Custom metrics are a feature in IBM Process Mining that helps you to apply a custom SQL query at the case level of a project to create a business metric. You can create the SQL query by using the available data in IBM Process Mining to compute a user-defined result. Therefore, you must have a good understanding of the SQL and the data structures in IBM Process Mining to create a custom metric.
You can use custom metrics for the following activities in IBM Process Mining:
- Creating project filters
- Comparing process models
- Viewing process statistics
- Model conformance checking
- Creating an analytics dashboard
- Creating a backup of the project
You can use custom metric created with SQL based on MonetDB taxonomy to compute your own metrics and then leverage them in the widget and dashboard filters. For more information, see MonetDB taxonomy.
Using custom metrics in a project might impact the performance of process analysis. To maintain optimum performance, limit the number of custom metrics and ensure their SQL query is optimized. If the custom metric is invalid, you see an Error icon next to it and its Show statistics toggle is disabled.
The following sections explain the tasks that you can do in the Custom Metric section in IBM Process Mining:
- Accessing the Custom metric dashboard
- Creating a custom metric
- Editing an existing custom metric
- Deleting a custom metric
- Filtering custom metrics by category
Accessing the Custom metric dashboard
To access the Custom metric dashboard, do the following steps:
-
Select a process-mining project from the Projects table in the Projects tab.
-
Go to Data & Settings > KPIs > Custom metrics.
Creating a custom metric
To create a custom metric in IBM Process Mining Legacy, do the following steps:
-
On the Custom Metric dashboard, click Create a custom metric.
-
Enter a name for the custom metric in the Name field.
-
Select one of the following data types from the Data Type dropdown:
-
Boolean To get
True
orFalse
as output based on the query. -
Date To get the date as output in the
<YYYY-MM-DDTHH:mm:ss.sssZ>
format. -
Numeric To get an integer or decimal number as output.
-
String To get the text string as output.
-
Duration To get the duration (in milliseconds) as output. When you select this data type, IBM Process Mining generates the custom metric result as a
duration
in milliseconds.
-
-
Optional: Add a description if you need to give any details about the metric.
-
Optional: Switch on the Show custom metric statistics if you want to view the statistics of the custom metric in the Model tab and Statistics tab.
The switch of the Show custom metric statistics does not impact the use of the custom metrics in the Analytics dashboard.
-
Enter the SQL code in the Custom metric measure field.
-
Select a value from Group by dropdown to complete the SQL query.
You can group by Case ID, Event, Project, by any event log column, as well as Resource and Role.
When you create custom metrics that are grouped by any event log column or the Event value, a case distinct function will be applied in the background after the creation of the custom metric only if the metric's measure includes a function at case-level. -
Optional: Enter a clause in the Where field.
-
-
Optional: Turn on the Activity interval switch.
- Select the interval settings by using dropdowns.
-
Optional: Turn on the Keep last event for each case.
-
Click the Test Code button to validate the custom SQL query.
-
Click Next to go to the Additional configuration step.
-
Optional: Enter the unit of the custom metric result in the Unit field if you have any specific unit to display in the custom metric statistics.
-
In the Assign to categories section, you have two options: Select Existing category, and the Create New category.
By default, IBM Process Mining categorizes the custom metrics in the General metrics category.
-
To select an existing category, do the following steps:
-
Choose the Select Existing radio button in the Assign to categories section.
-
Choose a category by clicking a related category tile.
-
-
To create a new category to link custom metric, do the following steps:
-
Choose the Create New radio button in the Assign to categories section.
-
Enter a name in the Name field.
-
Enter a description in the Description field.
-
Select an existing icon or add an icon in the Icon field.
The maximum file size of the icon that you can upload is 200 KB.
You can upload only theSVG
,JPG
,JPEG
, orPNG
format. -
-
Click the Create button to complete the creation of a custom metric.
You can see details of the created custom metric under the assigned category. To do so, go to the Custom metrics table in the Custom metrics page.
Editing a custom metric
To edit a custom metric, do the following steps:
-
Go to Data & Settings > KPIs > Custom metrics.
-
Click the Edit icon.
-
In the Edit custom metric dialog, you can change the following fields in the Details step:
-
Description field
-
Show statistics switch
-
Custom metric measure field
-
-
Click Next to go to the Additional configuration step.
-
In the Additional configuration step, apply the changes that you want in the following fields:
-
Unit
-
Category
-
-
Save your changes.
Deleting a custom metric
When you delete a custom metric, the output of the existing Analytics widgets, which apply to the deleted custom metric becomes invalid. Also, the associated project filters are deleted.
To delete a custom metric, do the following steps:
-
Go to Data & Settings > KPIs > Custom metrics.
-
In the Custom Metric page, search for the custom metric that you want to delete.
-
Click the Delete icon to see the Delete custom metric window.
-
Delete the custom metric.
When you restore a custom-metric based backup of a process model, IBM Process Mining re-creates only the custom metrics that are relevant to the selected project.
Filtering custom metrics by category
To filter custom metrics by category, do the following steps:
-
In the Custom metric dashboard, click the All dropdown on the upper left of the window to see the list of categories.
-
Select a category from the All dropdown.
Learn more
Example: Creating a custom metric to analyze the opportunity management process