In this Explore recipe, you'll learn how to create a report that counts the average number of replies an agent makes for each ticket on a daily basis.
What you'll need
Skill level: Moderate
Time Required: 20 minutes
- Zendesk Explore Professional or Enterprise
- Editor or Admin permissions (see Giving agents access to Explore)
- Ticket data in Zendesk Support
How to create the report in Explore
To create the report
- In Explore, click the reports (
) icon.
- In the Reports library, click New report.
- On the Select a dataset page, click Support > Support - Updates history, then click Start report. The report builder opens.
- Now, create a Standard calculated metric to compute the ratio between public agent replies and tickets commented. Click Calculations (
), and then click Standard calculated metric.
- Copy the formula below and paste it into the metric editor. Add a title for the metric like Average agent replies per ticket per day.
D_COUNT(Agent comments)/D_COUNT(Tickets updated)
Tip: If you're working in a language other than English, read this article to help you enter Explore formulas in your language. - When you are finished, click Save.
- In the Metrics panel, click Add.
- From the list of metrics, choose Calculated metrics, > Average agent replies per ticket per day (the custom metric you just created), then click Apply.
- Ensure the metric aggregator for Average agent replies per ticket per day is set to AVG. For more information, see Choosing metric aggregators.
- In the Rows panel, click Add.
- From the list of attributes, choose Updater > Updater name, then click Apply.
- In the same attributes list choose Time - Ticket update > Update - Date, then click Apply.
- In the Filters panel, click Add.
- From the list of attributes, choose Ticket update > Comment type, then click Apply.
- In the Filters panel, click the Comment type filter you just added and include only Public comments.
- In the Filters panel, click Add.
- From the list of attributes, choose Updater > Updater role, then click Apply.
- In the Filters panel, click the Updater role filter you just added and include only the Admin and Agent roles.
The report is complete. See the screenshot below for an example of how it will look.
5 comments
Jaïs Pingouroux
Hello,
Interesting recipe.
Is there a way to measure, by month, the average number of public comment updates made by agents? i.e. my aim is to make sure that every tickets receive at least one public comment from an agent, and visualise this by month.
0
Devan La Spisa
Hello Jais,
While you can do a count of comments made by each role, you can't switch the aggregator to average as Explore currently stands. I would recommend sharing your use case on our product feedback forums so our developers can consider it for a future update.
Best regards.
0
Jaïs Pingouroux
Hi @...
Thanks for your answer. What about this formula:
where "Agent public comment" is worth:
0
Rob Stack
Hi Jaïs Pingouroux, here's an idea to try. Use the standard calculated metric from the recipe above. In the columns panel, Add the update month attribute.
Then, add two filters. The first, Comment type should include only Public comments.
The second, Updater role should exclude End-user. The query would look something like this:
![](/hc/user_images/uiMIH99ldU2ZLDiYAIlCyQ.png)
If that isn't what you needed, please ask this question over at the product feedback forums to see if it's a feature that could be added. Thanks!
2
Jaanika O
Hello!
I would like to see the average amount of public comments per day of week. The goal is to have at least 15 public comments per day and I would like the report to show the current process.
I tried the COUNT(Agent comments) / DCOUNT_VALUES([Update - Date]) metric with filters for public comments and role as agent/admin and got quite close.
I have 2 issues:
0