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:
13 Comments
Hi, I did this, but when I add it to my dashboard and select the brand filter and the date range, the top number turns to 0 and the bottom percentage is 100%, regardless of which brand or month I choose. What am I doing wrong here?
Hi @...,
Thanks for reaching out! Sorry to hear you're running into issues when adding this query to a dashboard. I'm going to pull your request into a ticket so we can get a bit more information about your dashboard set up.
Best,
Hi, is there any chance that you can compare against a custom target? E.g. yesterday, our CSAT was 92%, and I want to compare it against our company KPI of 95%.
Any workarounds or additional information about the above?
Hi Shanaaz,
You can compare against a custom target by creating a Fixed Calculated Metric (https://support.zendesk.com/hc/en-us/articles/360022366973-Adding-fixed-calculated-metrics#topic_xdd_441_hy), which would essentially act as a constant and can be used in a comparison with the other metrics.
Warm Regards,
Eric G. Gao | Technical Support Architect | Zendesk
Hello,
I am trying to find a way to show the variation (Percentage) on %Reopened Tickets Current Week VS Previous Week. I have not been able to get the results. Any help will be appreciated. Thank you.
Hello Zendesk Team,
In looking over this article, it seems that listed under Original Metric, Tickets is no longer a valid option. Using Tickets Created as the Original Metric and Ticket Created as Defined On seems to work.
However, if you wanted to create the same metric for Solved tickets instead of Created tickets, does not seem to work. If you put in Tickets Solved for Original Metric and Ticket Solved for Defined On seems to cause the query to time out, provide no data, or throw an error saying that it exceeded the SQL limits.
If anyone has suggestions for how to create the same type of queries for Solved tickets, like the above created tickets, please let me know.
I have tried the directions on this article and it worked for me without any issue. Please refer to the values I have used and the resulting query.
If you encountered any issue feel free to contact our Support through Messaging.
Hi folks, I'm in need of some help if possible please :)

I would like to create a table which provides with insight on Tickets Solved (by tag) for the last week, and the previous week respectively.
Below is where I have got to so far, but it's not really what I'm looking for:
What I would like is for the first column to display how many tickets tagged in a certain way were Solved Last week (which I think I have achieved), and the second column to display how many tickets (tagged in the same way) were Solved the Previous week (i.e. the week before last). For now, I have simply used another metric. I know that I can create this manually via the date picker, but I was hoping there would be something less manual and more automated to achieve this.
Also, a VERY welcome bonus would be to also have a third column which illustrates the percentage increase/decrease between the second column and the first.
Any help would be enormously appreciated! :)
Thanks in advance.
Hi Oliver Jackson, you should be able to do this by creating two date range calculated metrics, one called Tickets solved last week and one called Tickets solved week before last. For both, set the Original metric field to Solved tickets and the Defined on field to Ticket solved. When it comes time to choose the date range for each one, go to the Advanced tab and:
Add the two metrics you just created in the Metrics panel (make sure you change the aggregator to D_COUNT).
Then, add the Ticket tags attribute in the Rows panel. If you want to see only certain tags in your report, you can filter on this attribute.
And finally, to get the percentage change column, go to the Result manipulation menu and select Result metric calculation. In the Formula field, insert your Tickets solved last week metric divided by your Tickets solved week before last metric. Click Add. (For more on result metric calculations, see this article.)
When you click out of the result metric calculation window, you should see your new column. You can change its formatting by going to the Chart configuration menu and selecting Display format. Next to your % change metric, select Custom and add a Suffix of %.
When you're all done, you should see a report similar to this:
Erin O'Callaghan
Hey Erin! I can't thank you enough for the explanation - so clear and effective. Really appreciate it.
I have one last hurdle however before the finish line: the data doesn't show me a percentage increase/decrease, but instead it appears to show the difference between the two values:

If we look at the example above, tech__reinstall_vcplusplus shows 100%, because it's an exact match, but in reality, I would like to display 0.0%.
With tickets tagged tech__reinstall_or_repair_dotnet, it's showing 94%, when in reality it should show -6%, and the same with auth_issue which should actually say -50% rather than 50%.
Does that make sense? Hope you can help me with this final brainteaser! :)
Thanks again.
Oliver Jackson Ah, good point! To get the percent increase or decrease, you can use this formula in your result metric calculation instead of the one I described above (just make sure to change the names of the metrics if you named them something different in your environment):
You can even go to Chart configuration > Columns and select the Arrow checkbox next to the last column to add a visual indicator of whether the number of solved tickets has increased (green arrow) or decreased (red arrow).
Erin O'Callaghan Thank you so much for this - all fixed up now! :)
Sorry for my delayed response - caught Covid and was off for several days.
Cheers!
Please sign in to leave a comment.