# Compare

> When in **Compare** mode, you can compare two sets of paths from your process. This enables you to visualize, compare, and analyze the performance of a process and its variations in all dashboards of your process app.

## Introduction

When in **Compare** mode, you can compare two sets of paths from your process. This enables you to visualize, compare, and analyze the performance of a process and its variations in all dashboards of your process app.

## Displaying the Compare by panel

In the **Compare by** panel you can select which field you want to use for the comparison. Follow this step to display the **Compare by** panel.

Select the Compare icon.

The process app is displayed in **Compare** mode and the **Compare by** panel is displayed to the right.

:::note
The Compare button is a toggle button. When the **Compare by** panel is visible, select the Compare button to hide the **Compare by** panel.
:::
:::note
**Compare** is disabled for **Root cause analysis**, **Automation potential** and **Process data**. In **Compare** mode, the period filter is not available.
:::

## Adding a Compare by filter

Follow these steps to add a **Compare by** filter.

1. Select **Add filter** and select one or more fields for comparison from the drop-down list.

The **Compare by** panel displays two scenarios: A and B. Scenario A is the main scenario and Scenario B is the comparing scenario. Each scenario has a different color. These colors correspond to the colors of the two scenarios in the dashboard.
2. If you want to compare specific field values, select the desired values for the filters displayed in the **Compare by** panel.

If you have already specified filters in the **Filter** panel, these filters will be displayed in the **Compare by** panel. Initially, the filters are the same for scenario A and scenario B.

:::note
The compare filters are included in the page URL. This enables you to share the link to a compare view.
:::

### Removing Compare by filters

Follow this step to remove any **Compare by** filters.

Select the **Clear all** button at the top of the **Compare by** panel.

The filters are cleared and both scenarios are removed from the **Compare by** panel.

## Comparing

### KPIs

Both scenarios are displayed for the KPIs in the context bar according to the color legend in the **Compare by** panel, which enables you to analyze the differences between the two scenarios for the KPIs. The value for Scenario A is displayed on the left and the value for Scenario B is displayed on the right.

   ![KPI header bar with two scenarios compares](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-kpi-header-bar-with-two-scenarios-compares-215204-e51729af-15485893.webp)

For the larger KPI charts, for example on the **Summary** dashboards, both scenarios are displayed as trend lines according to the color legend in the **Compare by** panel, which enables you to analyze the differences between the two scenarios for the KPIs over time.

   ![KPI charts with trend lines for the scenarios](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-kpi-charts-with-trend-lines-for-the-scenarios-215208-d825c194-8cf86c17.webp)

### Bar charts

In the bar charts, both scenarios are visible for each bar. You can hover over a bar to view the context information.

   ![Bar chart](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-bar-chart-304169-c605e812-39275bf2.webp)

### Process graphs

With the process graph, it is possible to compare two different processes based on different fields or different time periods. Both scenarios are combined in the process graph. The following illustration shows an example.

   ![Process graph](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-process-graph-248155-9b0d7cfd-9ced69d7.webp)

For the selected metric, both scenarios are visible on the edges. Similar activities for both Scenario A and Scenario B are white and activities that are different for Scenario A and Scenario B have the color of the scenario. Dotted lines indicate deviating edges.

When hovering over an edge, the context information is displayed.

   ![Context information in the process grapg](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-context-information-in-the-process-grapg-215472-43d72d1c-7ce283bd.webp)

### Distribution charts

In the distribution charts, both scenarios are visible for each bar. The following illustration shows an example distribution chart.

   ![Distribution chart](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-distribution-chart-304173-61cefdfc-3bf10b9b.webp)

### Line charts

In the line charts, each scenario is displayed as a separate line.The following illustration shows an example line chart.

   ![Line chart](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-line-chart-304181-4be798aa-992c62de.webp)
