In this Explore recipe, you'll learn how to create a report that shows you when an organization last submitted a ticket.
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
Creating the report
To create the report
- In Zendesk 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.
- Now, you'll create a Standard calculated metric to show the number of days since a ticket was created and today's date. Click Calculations (), then click Standard calculated metric.
- On the Standard calculated metric page, enter a name for the metric like Number of days between today and date ticket created.
- In the Formula field, enter or paste the following formula:
DATE_DIFF(TODAY(),[Ticket created - Timestamp],"nb_of_days")
You'll end up with a page that looks similar to the following.
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 > Number of days between today and date ticket created, the custom metric you just created, then click Apply.
- Ensure the metric aggregator for Number of days between today and date ticket created is set to SUM. For more information, see Choosing metric aggregators.
- In the Rows panel, click Add.
- From the list of attributes, choose Requester organization > Requester organization name, then click Apply.
- (Optional) Click the Requester organization name attribute and exclude NULL values. This will exclude results where the requester does not belong to an organization.
- From the list of attributes, expand Ticket, click Ticket ID, then click Apply.
- Click Result manipulation () then Top/bottom. Configure the following options:
- Bottom: 1 result
- Metric: SUM(Number of days between today and date ticket created)
- Strategy: Per block on rows
Then the report is complete. See the screenshot below as an example.