> For the complete documentation index, see [llms.txt](https://docs.work-relay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.work-relay.com/processes/working-with-processes/review-totals-process-statistics-as-lightning-somponent-or.md).

# \[REVIEW] Totals (Process Statistics) as Lightning сomponent | ?

{% hint style="info" %}
Version 8.2 and higher
{% endhint %}

Process Statistics for any process are available not only in the [proper tab](/processes/working-with-processes/process-details-page/totals.md) of the Process Details page, but also as a Lightning Web Component (LWC) that can be displayed on Lightning pages. With this LWC, it is possible create a personal dashboard for a desired process.

To add the Process Statistics LWC to a Lightning page:

* Click the Setup icon next to your avatar in Salesforce and select "Edit Page"
* Locate the "WR Process Statistic" Component in the Custom - Managed section of the Components tab
* Drag the component to the desired location on the page
* Open its properties and enter ID(s) of the desired processes (separated with commas) in the "Allowed Processes" field
* Save the page

![](/files/2942272afa4935485dba7a1156b69ac154f2ef71)

Within the Component, select the desired process to reveal additional fields and charts:

![](/files/bb6cd89db8fe95774b00da58585b883e726bea70)

![](/files/4161d29f8c54b315785498f1cbfff073389bd999)

{% hint style="info" %}
A process with ID that is first of added to "Allowed processes" field will be loaded by default into this component.

A primary process version will be loaded.

If there only one process ID is added, Process selection field will not be shown.

Only process IDs are allowed. IDs of process versions (or other objects) will be ignored.

User must add at least one process ID.
{% endhint %}
