In this Explore recipe, you'll learn how to create a report that displays the percentage of tickets that were created by each channel.
What you'll need
Skill level: Easy
Time required: 15 minutes
- Zendesk Explore Professional or Enterprise
- Editor or Admin permissions (see Giving agents access to Explore)
Creating the report
In this section, you'll add the metrics and attributes needed to create the chart.
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 - Tickets, then click Start report. The report builder opens.
- In the Metrics panel, click Add.
- From the list of metrics, choose Tickets > Tickets, then click Apply.
- In the Columns panel, click Add.
- From the list of attributes, choose Ticket > Ticket channel, then click Apply. Explore displays a chart showing the number of tickets received from each channel.
- To display the percentage of tickets received from each channel, click the Visualization type (
) menu, then choose Pie. See Chart types for comparing values to total results for more information on using charts to evaluate total results.
Your report will look something like this:
Next steps
The next steps are optional if you want to display the data in a table format instead of a pie chart.
- Click Visualization type (
) > Table.
- Drag the Ticket channel attribute from Columns to Rows.
- Click Calculations (
), and then Standard calculated metric.
We need to create a standard calculated metric that is a duplicate of the Tickets metric. - Copy the metric below and paste it into the metric editor.
[Ticket ID]
- Name the metric # Tickets.
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 > # Tickets, then click Apply. Ensure the metric aggregator is set to COUNT.
- From the Result manipulation (
) menu, click Result path calculation.
- On the Result manipulation page, change COUNT(Tickets) to the below settings:
Pattern: % of total
Path: On specified attribute
Attribute: Ticket channel - From the Result manipulation (
) page, click Totals.
- On the Totals page, enable Grand totals on > Rows and Subtotals on > Rows. Click Apply.
The report is complete. See the screenshot below for an example of the finished result.
11 comments
Richard Ly
Great article and exactly what we were looking for. We were able to use this to show the number and percentage of total tickets in the same table.
Thanks for the write-up.
1
Jon Durlauf
How would you adapt this query for a multi-select ticket field?
I am trying to create a report showing the percentage of tickets that include different topics. The topics are selected via a multi-select ticket field, so a single ticket can have multiple topics.
Following this recipe, I was able to show the correct counts for each topic. However, the percentages are incorrect. The example below is reporting on 3 total tickets, so the percentages in the table should be 67% and 33%. Any ideas how to correct this?
1
Elaine
Hi Jon,
I understand that you want to report on the percentage of tickets that have multiple topics chosen with the use of a multi-select ticket field.
Due to the way multi-select ticket fields are stored, a ticket with multiple topics/values chosen will always be returned multiple times throughout a query may it be a count of tickets for each topic or based on its percentages. There’s not a way to only count a ticket once across all multi-select values.
Hope I was able to clear this one out. :)
0
Suhan Li
Can someone help me to figure out how the percentage of the sub-item's count, e.g., I count tickets for each agent's response time and separated it as =< 3 days and > 3 days. I got the number of tickets out. Now I want to know what is the percentage for =< 3 days. But I have trouble with this. I know the formula should be count(=< 3 days)/count(Tickets). I tried all ways without any results.
Thanks,
0
Dave Dyson
0
Pasquale Castronuovo
I followed all the instructions:
Pattern: % of total
Path: On specified attribute
Attribute: Ticket channel
and the report works fine!
But drill in does not work, it shows me the percentage always on 100%:
![](/hc/user_images/Q4H5IpfhDY9oph_97qQMlw.png)
0
Viktor Osetrov
Thanks for your question. Unfortunately, couldn't replicate your issue.
Could you please check the "Drill in" attributes?
Hope it helps
0
Pasquale Castronuovo
Hi Viktor,
thank you for answering. Here are the settings of my drill in:
It doesn't work only if the dashboard is published. On Edit it works correctly.
Thanks
0
Viktor Osetrov
Thanks for your reply. From the previous reply, I see your issue related to Update handling time (min).
It is calculated metrics from the Time Tracking app.
This metric works with the following datasets > Support - Updates history. And the current recipe is for Support - Tickets. It can be the reason why the drill-in does not work as expected.
Hopefully, it clarifies.
Thanks
1
Efrat Barak Zadok
I have followed this recipe but it seems that the tickets count only solved/closed tickets and not all tickets - why is that?
0
Elaine
It should not exclusively count only the solved/closed tickets if you've followed the instructions outlined in the article. Please verify whether the report is filtered to display tickets with a solved/closed status. Refer to the screenshot below for detailed instructions.
0