# Accounts Payable - Events

> **Accounts payable - Events** is the main dashboard where you can analyze the events that occur in the Purchase-to-Pay process from an invoices perspective. Block or change events are recognized as deviations. These are events that you would ideally not want to happen. See the illustration below.

## Introduction

**Accounts payable - Events** is the main dashboard where you can analyze the events that occur in the Purchase-to-Pay process from an invoices perspective. Block or change events are recognized as deviations. These are events that you would ideally not want to happen. See the illustration below.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-58829-826ad5f4-aae52b4f.webp)

The information displayed in the dashboard is based on the creation date of the invoices. The **INV creation date** filter in the **Filters** panel enables you to select a period to display the invoices that were created in the selected period.

:::note
Since the process graph displays all invoices which are **created** within the selected period, the graph can also contain changes to these invoices that might be outside the selected period.
:::

### Timestamps

**Throughput time** is the duration between the event end timestamps of two event which follow each other. In this case, waiting time and idle time are also calculated. **Processing time** is the time actually spent on the event. In this case, waiting time and idle time are not taken in to account.

## KPIs

Below is a description of the **KPIs** that are displayed at the top of the **Accounts payable - Events** dashboard.

 <colgroup>
  <col/>
  <col/>
 </colgroup>
 
  
     KPI  
     Description  
  
 
 
  
     Avg. event throughput time  
     The average event throughput time for invoice events. Note: If you click on the <code>Avg. event throughput time</code> KPI, the <code>Avg. event throughput time</code> metric is selected in the Invoice events dashboard item. 
  
  
     Blocks set  
     The total number of block (set) events on invoices. Note: If you click on the <code>Blocks set</code> KPI, a filter is automatically created and added in the Filters panel. 
  
  
     Changes  
     The total number of change events on invoices. Note: If you click on the <code>Changes</code> KPI, a filter is automatically created and added in the Filters panel. 
  
  
     Main events  
     The total number of main events on invoices. Note: If you click on the <code>Main events</code> KPI, a filter is automatically created and added in the Filters panel. 
  
  
     Total value (invoiced)  
     The total value of the invoices.  
  
  
     Invoices  
     The total number of unique invoices.  
  
 

## Invoice Events

With the **Invoice events** dashboard item you can analyze the Invoices in more detail.

### Metrics

You can create various contexts by selecting different attributes from the drop-down list. The metric selector enables you to select different metrics. Below is a description of the metrics that can be used to analyze the invoices events regarding the selected attribute.

| Metric | Description |
| --- | --- |
| Number of events | The number of unique events, for invoices created within the selected period. |
| Avg. number of events | The average number of events that were performed on invoices that were within the selected period. |
| Percentage of events | The percentage of unique events for invoices created within the selected period, related to the number of invoices. |
| Percentage of invoices | The percentage of invoices per category, compared to unique invoices of all categories, for invoices created within the selected period. |
| Avg. event cost | The average cost of executing events for invoices created within the selected period. |
| Total event cost | The total costs of executing events, for invoices created within the selected period. |
| Avg. event processing time | The average processing time of events for invoices created within the selected period. |
| Total event processing time | The total processing time of event for invoices created within the selected period. |
| Avg. event throughput time | The average throughput time of all events for invoices created within the selected period. |
| Total event throughput time | The total throughput time of all events for invoices created within the selected period. |

## Distribution

The **Distribution** chart enables you to analyze the frequency of events based on the **Event throughput time (end to end). See the illustration below.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-53375-908f7e77-b5704fc7.webp)

## Process graph

The process graph displays the accounts payable process based on the number of events. See the illustration below.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-53828-d79e9619-20011052.webp)

:::note
You can use the **Detail** slider to change the number of activities and/or edges shown.
:::

### Viewing the process based on a different metric

Follow these steps to select a different metric for the process graph.

| Step | Action |
| --- | --- |
| 1 | Click on the **Displayed metrics** icon in the process graph. |
| 2 | Select a different metric from the list of available metrics. |

See the illustration below.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-53732-a38e54a0-ebcb41f5.webp)

See also [Working with Process Graphs](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/working-with-process-graphs#working-with-process-graphs).

### Activity category legend

The colors of the activities in the process correspond to the different event categories. See illustration below.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-53419-04cb3a91-6bdcb744.webp)
