With thanks to Taylor Bowser from Zendesk customer advocates.
A common request from Explore admins is to compare the volume of tickets (or any other metric) between two date ranges. In this Explore recipe, you'll find out how to use date range calculated metrics to create a report showing the percentage variation in tickets created between yesterday and today. You can modify this report to suit your own business needs.
What you'll need
Skill level: Easy
Time required: 10 minutes
- Zendesk Explore Professional or Enterprise
- Editor or Admin permissions (see Giving agents access to Explore)
- Ticket data in Zendesk Support
Creating the first metric
In this first procedure, you'll create a date range calculated metric that displays the number of tickets that were created today.
To create the metric
- In Explore, click the reports () icon.
- In the Reports library, click New report.
- On the Select a dataset page, click Support > Support - Tickets, then click Start report. The report builder opens.
- In the Calculations menu (), click Date range calculated metric.
- On the Date range calculated metric page, configure the following options:
- Name: Tickets created today
- Original metric: Tickets
- Defined on: Ticket created
- Date range: Simple > Today
- When you are finished, click Save.
Creating the second metric
In this procedure, you'll create a date range calculated metric that displays the number of tickets that were created yesterday.
To create the metric
- In Explore, click the reports () icon.
- In the Reports library, click New report.
- On the Select a dataset page, click Support > Support - Tickets, then click Start report. The report builder opens.
- In the Calculations menu (), click Date range calculated metric.
- On the Date range calculated metric page, configure the following options:
- Name: Tickets created yesterday
- Original metric: Tickets
- Defined on: Ticket created
- Date range: Simple > Yesterday
Tip: You can use these metrics as the basis for your own reports. For example, you could report on Talk or Chat volume changes, or solved tickets instead of created tickets. For help with the available metrics and attributes, see the building reports section of the Explore documentation. - When you are finished, click Save.
Creating the report
In this final procedure, you'll add the two date range calculated metrics you created and format them to create the final report.
To create the report
- In the Metrics panel of the report builder, click Add.
- From the list of metrics, expand Calculated metrics and choose the two date range calculated metrics you created, Tickets created today and Tickets created yesterday. When you are finished, click Apply.
- Ensure that the Tickets created today metric appears first in the Metrics panel. If it doesn't, you can drag and drop it into the correct position.
- Click each metric you just added and change the aggregator to COUNT.
Your report will look like the following screenshot:
- In the visualization type menu (), click KPI.
- In the chart configuration menu (), click Chart.
- On the Chart page, configure the following settings:
- Label: Enter Tickets created today (and change since yesterday)
- Hide label: Uncheck this setting
- Show variation: Enable this setting
- Variation type: Set to Percentage
The report is now complete and will look similar to the screenshot below: