This recipe is the Explore equivalent of the Insights recipe Top problem tickets by unsolved incidents.
What you'll need
Skill level: Moderate
Time Required: 20 minutes
- Zendesk Explore Professional
- Editor or Admin permissions (see Adding users to Explore)
- Ticket data in Zendesk Support
Creating the query
To create the query
- In Zendesk Explore, click the query () icon.
- In the Queries Library, click New Query.
- Now, choose a dataset containing the problem ticket data you'll need to build the query.
Select Zendesk: Tickets. Query Builder opens.
- In the Metrics panel, click Add.
- In the metric list, expand Tickets, click Incidents, and then click Apply.
- In the Rows panel, click Add.
- In the rows list expand the Ticket menu, then click Ticket problem ID.
- Now, add a filter to exclude incidents that are not connected to problem tickets. Click Ticket problem ID and click the Excluded tab. Select Null to exclude any null values.
- Now, create a custom Standard calculated metric to calculate the number of incidents that are currently unsolved. Click Calculations (), and then click Standard calculated metric.
- Copy the formula below and paste it into the metric editor.
IF ([Ticket type - Unsorted] = "Incident" AND (([Ticket status - Unsorted] != "Solved")It will look like the screenshot below:
AND ([Ticket status - Unsorted] != "Closed")))
THEN [Ticket ID]
- From the Metrics panel, add the new metric Calculated metrics. Ensure the metric aggregator is set to COUNT. For more information, see Choosing metric aggregators.
- Now, add the percentage detail using a Result metric calculation. Click Result manipulation (), then select Result metric calculation.
- On the Result metric calculation page, click Add a new metric.
- Enter the name of your metric.
- Enter the formula below. You must select your metrics and functions from the drop-down list next to Insert.
- Click + Add to add the calculation.
- The final step is to edit the query to show the new calculation in a percentage format. Click Chart configuration (), then Display format. Then change the calculation metric to display in %.
Then the query is done! Check out the screenshot below as an example.
If you'd like to filter this report by the problem tickets with the most incidents, you can apply a top/bottom filter. Check out Creating a top/bottom filter for further instructions.