In this recipe, you'll create a query that uses your existing ticket data to forecast an estimate of how many tickets you'll receive in future years. To be able to forecast results, Explore needs at least two cycles of data. A cycle is a period of time broken down into multiple periods. For example, if you are reporting by year, you'll need at least two years of data to generate a forecast.
This article contains the following sections:
What you'll need
Skill level: Advanced
Time required: 25 minutes
- Zendesk Explore Professional or Enterprise
- Editor or Admin permissions (see Giving agents access to Explore)
- Zendesk Guide Professional or Enterprise with the Answer Bot add-on
- A blank Explore query using the Support: Tickets dataset. For help creating a new query, see Creating queries.
Creating the query
To create the query
- In the Metrics panel of your blank query, 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 Time - Ticket created > Ticket created - Year, then click Apply.
- Explore generates a chart showing the number of tickets created each year since you began collecting data. From the visualization type menu (
), change the chart type to Line. You'll end up with something that looks like the following:
- Now, you'll add the forecast to your chart. From the result manipulation menu (
), choose Forecast.
- In the Forecast menu, select Calculate a forecast on the result.
- Leave all other values in the menu at their default values. Explore regenerates the chart showing one year into the future. The forecasted portion of the line chart is shown as a dotted line, for example:
- Click the New query text, then enter a name for the query like Ticket volume forecast.
- Save your query.
You've now finished creating a simple forecasting example. In the next section, you'll dig a bit deeper into the forecasting options and customize the chart you just created.
Exploring forecasting options
In this section, you'll start with the ticket volume forecast chart you created and explore how the different forecasting options affect it.
To open the forecasting menu
- Open the Ticket volume forecast query you created previously.
- From the result manipulation menu (
), choose Forecast.
The Forecast menu contains the following options:
Calculate a forecast on the results
Select this checkbox to turn on forecasting.
Path
You can calculate the forecast based on the columns, or the rows in your chart. However, whichever you choose must contain a date-based attribute. In the example in this article, you added the Ticket created - Year attribute to the Columns panel, so in the Path drop-down list, select On rows.
If you want to test how the path works, try dragging the Ticket created - Year attribute from the Columns panel into the Rows panel. Then, change the path to On rows. You'll end up with a table (instead of a chart) showing the ticket volume by year with the forecast.
Method
The Method drop-down list selects the type of calculation that Explore uses to calculate the forecast. You can choose from two methods, each of which might return different results.
Explore uses the Holt Winters model as a forecasting method. Explore uses two sub-models that fit most use-cases, the AA and AM models which also take into account seasonal variations. If you want to read more about Holt Winters and the two models, see Using forecasting to predict results.
For this example, choose Additive trend and additive season.
Values to predict
Choose the number of values that you want to predict. In our example, when this was set to Auto, Explore looked one year ahead.
Choose Custom and then set Specify the number of values to predict to 5. This will make the forecast look five years ahead.
Values per cycle
Finally, this setting configures how many forecasts to make over each time period. In our example, when this was set to Auto, Explore forecast one result each year. Increasing the values per cycle increases the detail of your forecast.
Choose Custom and then set Specify the number of values per cycle your data contains to 6. This will take 6 forecasts throughout each year.
Finishing up
You'll end up with a chart that looks something like this example:
Next steps
For in-depth information about how forecasting works in Explore, see Using forecasting to predict results.
11 Comments
Hello Guilherme Monteiro,
Currently, this is not possible in Explore at this time. I would recommend posting your use case in our product feedback forums so our developers can consider this change for future updates.
Best regards.
Hi,
Is there a way for me to filter the graph results to show only the most recent X columns instead of hiding the last X columns?
Reason I'm asking is that I was able to create the forecast on a daily basis, but it ends up showing the whole history of data I have in this graph. If I hide the last X columns, I'll have to udpate it every day.
Goal is to show only the most recent 7 columns to see it on a weekly basis.
Does that make sense?
Thanks you.
Hi Nelli Laine, take a look at this article which will hopefully help: https://support.zendesk.com/hc/en-us/articles/360024713833
I'm trying to forecast by month and/or week of year but having trouble as it's telling me I need at least 2 cycles. We have 2 cycles available for all months except what's remaining of November and December (started with Zendesk in Jan 2019). Is there a way to forecast only the months that have 2 cycles worth of data or do we have to have 2 full years?
Hello Miyahara KEIKO(宮原 恵子),
Great question! So two would be the minimal cycles that are required in order for a forecast to run. The more values specified per cycle, the more robust the forecast values, so the more you can include, the better. But two months would be enough if you set “Values per cycle” to 1.
Best regards.
On Wednesday, April 8, from 8:00am-10:00pm CDT, we'll have a special guest team of experts on hand to answer your questions about Explore: Reporting & Insights Migration in your Zendesk Explore instance for an AMA-style conversation!
Just click the "new post" button and write up your question. Be sure to be as detailed as possible. The best questions include:
Questions posted to this topic in advance of the start time will be answered first thing on the 8th, so if you've got something you want our experts to look at, post it today!
Hi, i can't seem to get the monthly forecast to work. I have selected the Ticket created - Month to Column, but when I set up the forecast I get an error "forecast_error_year_missing". I have the "Auto" selection on in the Forecast menu. How did you get it working?
Hello Erica Garcia,
At this time, Explore does not have the functionality to accomplish this. I would recommend posting your use case in our Explore Product feedback forums so our developers can consider it for a future update.
Best regards.
What if we wanted to filter by year?
Providing trending by year over year and current year displaying actuals plus forecast...
In this scenario I am using default Tickets: Tickets created by month/year query and trying to add the forecast without any success unless I remove my row-year and I can't use the view you show above for executives..need year over year view with actuals and forecast combined.
Looking for additional guidance to also add forecast to daily average by group for current year...any suggestions?
Hi Stephenie B, thanks for the question. I believe that this article - https://support.zendesk.com/hc/en-us/articles/360022184594 will give you more information. Make sure to look at the tip half way down the article.
If you can't get it to work after that, let us know and we'll open a ticket on your behalf. Thanks!
The recipe is very helpful!
To make the same prediction by month, which figure should I set to "Values per cycle"?
Also, how many months do I need to start showing the forecast?
Thank you.
Please sign in to leave a comment.