Deskpro's reports interface includes a powerful Report Builder that allows you to produce detailed statistics and metrics for your helpdesk. This article is a quick guide to getting started with building custom stats.
To access the reports interface, click the bar chart icon in the Deskpro sidebar
If you don't see this icon, you may need to ask your admin to grant you access to reports.
Stats are sets of data values that can be displayed in a variety of different formats. You can combine multiple stats together to create reports, and multiple reports to create dashboards.
Stats are built using DPQL, a structured query language. Each DPQL query you make pulls specific data from your helpdesk and displays it in the specified format.
To use stats, click Stat Builder in the Reports Sidebar.
Here you can see a list of existing stats, complete with labels. You can filter stats here by name or label.
To interact with a stat, click on it.
In the stat pane, you can see the the data values the stat is showing based on the DPQL queries associated with it.
You can also edit the DPQL values of the stat by clicking the Edit Stat button.
To create a new stat, click the + Add button.
To use variables within queries, you can add variables using the 'Add Variable' button below the fields in the query builder.
Enter an ID for the variable. This is how you will refer to the variable from the query.
Then simply select the type of data you want the variable to pull from, and select an optional default value for the variable to appear.
Enter a title for your stat, and add any labels you wish to associate it with.
Whether editing or creating a new stat, you will be required to use DPQL queries to specify the data you want to see in the stat.
The query builder provides a guided process so you simply need to fill in the values, but raw DPQL allows you to input both clauses and values if you wish.
For more information on using DPQL, refer to <a style="box-sizing: content-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); background: transparent; color: rgb(57, 100, 185); text-decoration: none; margin: 0px; padding: 0px; border: 0px; outline: none; font-size: 13px; vertical-align: baseline; cursor: pointer; font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif; user-select: auto;">this article</a>.