Running/rolling average | The place for Zendesk users to come together and share
Skip to main content
March 26, 2021
Question

Running/rolling average

  • March 26, 2021
  • 7 replies
  • 47 views

Hi all, 

 

I'm hoping someone could advise whether or not it's possible to see in a query running(or rolling) average of tickets created in the past 7 days for example. 

Insights do have this feature and it's handy! We have migrated to Explore and now need to use this feature. 

Thanks in advance 

    7 replies

    Christopher15
    March 29, 2021

    Hi @Vladimir Petrushenka, is it a single figure showing the daily average over the last 7 days that you're looking for?

    March 29, 2021

    Hi @Chris Stock 

    Yeah, that would be great if we could achieve that. Thanks for looking into this 

    Christopher15
    March 29, 2021

    No problem. You should be able to achieve what you're after using a filter and 'Result metric calculation'. Using the Support - Tickets dataset:

    1. Add COUNT(Tickets) as your metric.
    2. Add a filter on Ticket created - Date. Select 'Edit date ranges' and add the following 'Advanced' filter
    3. Click on 'Result manipulation' and select 'Result metric calculation'.
    4. Add a new metric, give it a name, then write this formula

    Remember to check 'Clear used metrics'.

    That should give you a figure showing the total number of tickets created over the last 7 days divided by 7.

    March 30, 2021

    That does work, thanks for this again 2490698108 

    Do you think I can somehow incorporate that into this report as a separate value/metric? 

    Many thanks 

     

     

    Christopher15
    March 30, 2021

    I'm not sure where in that chart the rolling average metric would appear. It might be better to add both to a dashboard and have them displayed side-by-side.

    November 4, 2021

    Hello - I'm interested in setting up a metric like this, that would show you the 7-day rolling average of tickets. Looking at the suggestion in this thread, I'm super confused - wouldn't adding a date-range filter for 7-days in the past only ever show you just the most recent 7-day ticket history?

    I want to create a time series that would show me a rolling average of tickets created over a 7-day period, by date.

    So for the X-axis (date), each day represented would show tickets created for each day within a 7-day block in the past from that date, divided by 7 (to get a rolling average). Is this possible? I feel like you'd need something similar to week-buckets as an attribute like described here: https://support.zendesk.com/hc/en-us/articles/4408834272282 -- only for each day of the week if that makes sense. 

    Employee
    November 10, 2021
    Hi Crawford Philleo,

    A related topic on rolling average may be found in this other community post, 7-days average. Unfortunately, as indicated in the thread, Explore does not currently have a native method for calculating a rolling average. 

    You may also want to check at Date Range Calculated Metrics, which allows you to create totals for a certain time period; however, this will only be a single figure, and not a continuous trend.