How much does it cost your support team to tackle questions about various issue types or how much time do you spend on various customers?
In this report, you'll use data collected by the Zendesk Time Tracking app to create a cost of service metric you can use in your reports.
This article contains the following topics:
What you'll need
Skill level: Medium
Time required: 20 minutes
- Zendesk Explore Professional
- Editor or Admin permissions (see Adding users to Explore)
- Ticket data in Zendesk Support
- The Zendesk Time Tracking app must be installed, and must have collected data
Note: The time tracking app stores data in custom numeric fields that are synchronized with Explore. If you have installed the Time Tracking app recently, the data required to build necessary calculated metrics might not yet be synced with Explore. This sync occurs once an hour.
Creating the cost of service metric
The time tracking app tracks how long agents spend working on various tickets. The app reports this in seconds, but for this recipe, you’ll convert the value into hours by creating a new calculated metric.
- In Explore, click the query ( ) icon.
- In the Queries library, click New query.
- On the Choose a dataset page, click Support > Tickets > Support: Tickets dataset. This dataset is where the historic custom field data from the Time Tracking app is stored.
- In Query builder, open the calculations menu (), then click Standard calculated metric.
- Name the new metric Cost of service metric.
- In the formula window, enter the following formula:
VALUE(Total time spent (sec))/3600*(your hourly rate)
- For example, if your hourly rate is $15.99, enter
VALUE(Total time spent (sec))/3600*15.99
- When you are finished, click Save.
Using the cost of service metric
Now you've created the metric, you can use it in any of your reports that use the Support: Tickets dataset.
To use the cost of service metric in a report
- In Explore, open a new query using the Support: Tickets dataset.
- In the Metrics panel, click Add.
- From the list of metrics, choose Calculated metrics > Cost of service metric, then click Apply. Explore displays the total cost of service for all tracked time spent on tickets.
Now, you can add attributes to the Columns or Rows panel to slice this cost data to your needs. For example, add the Ticket ID attribute to see the cost for each ticket, or the Assignee name attribute to see the cost for each assignee.
You can change the display format of this metric to dollar amounts from the display format page of the chart configuration menu ( ) . By slicing this metric by various attributes, you can produce detailed cost estimates for different parts of your organization.
For more help, see Creating queries.