In this Explore recipe, you'll learn how to create a report that organizes chat requesters into brackets based on the number of chats they've initiated. This information helps you determine the total count of chat requesters who have interacted with live chat on a per-usage basis within a specified timeframe.
This recipe contains the following sections:
What you'll need
Skill level: Advanced
Time required: 30 minutes
- Zendesk Explore Professional or Enterprise
- Editor or Admin permissions (see Giving users access to Explore)
- Chat data in Zendesk Chat
Building your report
- In Explore, click the reports () icon.
- In the Reports library, click New report.
- On the Select a dataset page, click Chat > Chat - Engagement, then click Start report. The report builder opens.
- In the Calculations menu (), click Standard calculated metric.
- In the Name field, give your metric a name like # Chat requesters.
- In the Formula field, enter or paste the following formula:
IF ([Chat type - Unsorted]!="Offline Message") THEN [Ticket requester] ENDIF
- In the Metrics panel, click Add.
- From the list, select # Chat requesters (the metric you created above), then click Apply.
- Change the metric aggregator to D_COUNT.
- In the Calculations menu (), click Standard calculated attribute.
- In the Name field, give your metric a name like Chats received brackets.
- In the Formula field, enter or paste the following formula:
IF ATTRIBUTE_FIX(COUNT(Chats),[Ticket requester]) = 1 THEN "1 Chat"
ELIF ATTRIBUTE_FIX(COUNT(Chats),[Ticket requester]) = 2 THEN "2 Chats"
ELIF ATTRIBUTE_FIX(COUNT(Chats),[Ticket requester]) = 3 THEN "3 Chats"
ELIF ATTRIBUTE_FIX(COUNT(Chats),[Ticket requester]) = 4 THEN "4 Chats"
ELIF ATTRIBUTE_FIX(COUNT(Chats),[Ticket requester]) >=5 THEN "5 or more Chats"
ELSE ""
ENDIFNote: You can amend this formula to suit your specific needs depending on how many brackets you want. - In the Rows panel, click Add.
- From the list, select Chats received brackets (the attribute you created above), then click Apply.
- In the Columns panel, click Add.
- From the list, select Chat - Started date, then click Apply.
- Apply a time filter for Chat - Started date to narrow your results. For help, see Filtering by an attribute in the Filters panel.
The finished report shows the number of chat requesters per day grouped into brackets based on the number of chats received per chat requester.
Enhancing your report
To compare and slice the results in the report further, consider applying the following attributes to the report as well:
- Ticket group: The Support group the Chat ticket is assigned to
- Ticket requester: The name of the Chat visitor