- Release notes
- Before you begin
- Getting started
- Integrations
- Working with process apps
- Working with dashboards and charts
- Working with process graphs
- Working with Discover process models and Import BPMN models
- Showing or hiding the menu
- Context information
- Export
- Filters
- Sending automation ideas to UiPath® Automation Hub
- Tags
- Due dates
- Compare
- Conformance checking
- Root cause analysis
- Simulating automation potential
- Starting a Task Mining project from Process Mining
- Triggering an automation from a process app
- Viewing Process data
- Creating apps
- Loading data
- Transforming data
- Customizing process apps
- Publishing process apps
- App templates
- Notifications
- Additional resources

Process Mining
Fields and metrics
With Data Manager you can add and edit fields and metrics displayed in your process app.
The fields listed in Data Manager correspond to the columns in the tables of your source data. Using Data Manager, you can create new fields that derive their values from an expression or calculation based on values from other fields, adding them as new columns in the table. This enables you to use more comprehensive data visualizations on your dashboards, for enhanced data analysis.
Metrics are used to define a calculation once and reuse it in the entire app. Metrics can be calculated using expressions and can be based on values from fields. For example, you can create a metric to calculate the number of invoices, or a metric to calculate an average value. You can reuse these metrics in different charts. Metrics can be used to calculate other metrics.
If you want to add business logic to your process app but the field or metric you want to use is not available by default, you can create new data that you can use in your dashboards.
Follow these steps.
-
In the Data Manager panel, select +New, then select New field or New metric from the menu.
The Create data window is displayed.
-
Enter a descriptive name for the new field or metric.
Tip:It is a good practice to refer to the goal of the field or metric, which means an indication of what is computed. For example,Total_cost
, for a field that which multipliesQuantity
withPrice_per_item
for each order. (Total_cost = Quantity * Price_per_item
). -
If you create a new field, select the table into which you want to create the new field from the available tables in the Table list.
Important:A value is computed for each row of the selected table. References to fields in other tables are computed relative to the selected table. This means that referring to fields in other tables may yield duplicate results. You can only refer to fields which are reachable from the selected table. For example, you can use fields from theCases
table when defining a new field in theEvents
table, but not vice versa. The value of a field inCases
table is the same (duplicated) for each row in theEvents
table that belongs to the same case. -
Configure the business logic in the Logic configuration editor using the available logic blocks.
-
Add the logic block for the operations.
-
Add the fields and constants to define the operations.
Tip:You can select the Preview button to view a sample of the values resulting from the calculation.
-
-
Select Save.
Note:The Save button is only enabled if the logic configuration is complete and correct.
The field or metric is added to the list of fields and metric in the Data Manager.
You can also create a new field for a specific table in the Data manager.
Follow these steps to create a new field for a specific table.
-
In Data manager, locate the table into which you want to create the field.
-
Select the
icon to open the menu and select + Create new field.
The Create data window is displayed and the table is selected in the Tables field.
You can easily drag and drop logic blocks onto the Logic configuration canvas to build an expression.
When you create a logic flow or a calculation, the inputs and outputs of each logic block must match up correctly in terms of data kind. The expression is validated, and feedback is displayed on the logic block to help you to troubleshoot and correct the calculations as you go.
You can only save the logic configuration if it has no errors.
Saving a logic block or configuration as a draft
You can save a logic block or configuration and reuse it later.
Follow these steps.
-
Select the logic block you want to save as a draft, and drag it to the Logic blocks panel. The Logic blocks panels shows a Add block to draft area.
-
Drop the logic block on the Add block to draft area.
The logic block is removed from the canvas and saved as a draft on the Draft tab.
Using a draft
Follow these steps to use a draft in your configuration.
-
Go to the Draft tab and locate the logic block you want to use.
-
Drag and drop the logic block to the desired location in your Logic configuration.
The draft is no longer available on the Draft tab.
Follow these steps to remove a logic block.
-
Select the logic block you do not want to use anymore, and drag it to the Logic blocks panel. The Logic blocks panels shows a Delete block area.
-
Drop the logic block on the Delete block area.
The logic block is removed from the canvas.
Follow these steps to edit a field.
- Select the field you want to edit.
The Edit field dialog is displayed.
- Edit the Field name as desired.
- Select Save.
There might be instances where the field Type does not align with the data type of the source field in your dataset. For example, you may upload data of an integer Type to a field that was previously uploaded with text Type data. Such instances will be indicated in the Fields list in the Data manager.
You can only select a new Type based on the data type of the source field that is uploaded. For example, if the field in the dataset is of type integer, you can change the field Type to number, and if the field in the dataset is of Type text, you can change the field Type to nominal or ordinal.
You can only change the Type of a field that is not used in dashboards. In case the field is actually used in dashboards:
-
Remove the field from the chart or charts.
-
Edit the Type of the field.
-
Add the field back on the chart or charts.
For currency fields you can also change the currency format. The following illustration shows an example.
This is a display setting, it does not convert the field value.
The following table describes the elements of the Edit field dialog.
Element |
Description |
---|---|
Field name |
The display name of the field. |
Source field |
The name of the column in the data source. |
Type |
The kind of data that the field holds. |
Currency* |
A drop down combo box containing all available currency formats. |
* Currency is only available for monetary fields.
With Data Manager you can hide fields that are available in your dataset but not used in your process app. A field that is set to hidden in Data Manager, will not be visible in selectors when editing dashboards using the dashboard editor. This is useful when you do not want to use these fields in a visualization, but do want to use them to compute metrics.
Follow these steps to hide a field.
- Locate the field you want to hide.
-
Select the Hide field in app icon
icon
The field is set to hidden and the icon is changed to the Show field in app icon
. If you select the icon, the field becomes visible again.
You can only edit the expression for custom fields you created from the Data Manager.
Follow these steps to edit a custom field.
- In the Data Manager panel, locate the field you want to edit and select the Edit icon.
The logic configuration of the field expression is displayed.
-
Edit the expression as desired and select Save.
The logic configuration editor is closed and you return to the dashboard editor.
Follow these steps to edit a metric.
- In the Data Manager panel, locate the metric you want to edit and select the Edit icon.
The Edit KPI window is displayed.
-
Edit the display name for the metric in the Metric name field and/or configure the rules for the metric.
-
If applicable, add or change context metrics.
- Select Save.
You can add context metrics to provide a better understanding of the main metric displayed on the chart. Context metrics are displayed as tooltips on charts.
Average amount
, useful context is Number of objects
for which the average amount is calculated. This also applies when you main metric is defined as Total amount
. In this case, also Number of objects
for which the sum is calculated is a useful context.
Cases with tag (%)
, useful contexts can be Number of objects with tag
and Total number of objects
.
The following table shows some examples of main metrics with relevant context metrics.
Main metric |
Context metric 1 |
Context metric 2 | |
---|---|---|---|
Count |
Number of objects
|
- |
- |
Average |
Average amount
|
Objects
|
- |
Sum |
Total amount
|
Objects
|
- |
Percentage |
Objects with tag %
|
Objects with tag
|
Total objects
|
To keep your data clean, you can delete fields that are not used anymore. Follow these steps to delete a field.
You can only delete empty fields.
- In the Data Manager panel, locate the field you want to delete.
-
Hover over the field name and select the
Delete field icon.
-
Select Delete.
The field is removed without any notification.
To keep your process app clean, you can delete metrics that are not used anymore. Follow these steps to delete a metric.
- In the Data Manager panel, locate the metric you want to delete.
-
Hover over the metric name and select the
Delete metric icon.
A confirmation message is displayed.
-
Select Delete.
Note: You can only delete user-created metrics. Metrics that are used in charts can not be deleted.