Standard Calculated metric for date functions


6 Comentários

  • Jessica Blake
    Zendesk team member

    Hi Adnan,

    Thanks for reaching out in our community!

    The simplest way to achieve this would be to use filters within a query to show the tickets created that day. Please check out the screenshot below as an example:

    Don't forget that on Explore Professional the data refreshes hourly, so the query won't be showing you live data. It should just be used for estimating your volume throughout the day.

    If you need to create a calculated metric for use in a report, you would be better off creating the metric to calculate tickets created in the brand, and then use a date range calculated metric to find today's data.

    The first metric would be like this:

    IF ([Ticket brand]="Tester Brand") THEN [Ticket ID] ENDIF

    Then you would create a date range calculated metric for today's tickets:

    Let us know how you go with this!


  • Adnan

    Hi Jessica, thanks for your clear explanation, Im now able to create customized reporting by using your suggestion as a basic.

  • Raman Kalia

    I'm finding it hard to write a formula that provides me 

    Number of tickets solved Yesterday out of tickets created before yesterday

    Anyone with a way to create a formula for this. I'm looking to pitch tickets in single report for

    tickets created yesterday

    tickets solved out created yesterday

    tickets solved yesterday but created before yesterday

    resolution time from the ticket that took longest to solve, from the tickets that were solved yesterday

    I've not been able to find a formula that sets the [ticket created - date] = previous (terminology of Insights)

  • Devan - Community Manager
    Zendesk Community Team

    Hello Raman Kalia

    Regarding the first two reports you want to create, you are going to want to use date range calculated metrics, which you can find the tools to build in the article lited below.

    Explore functions reference

    For your third report, you will need to create a standard calc metric with an if/then statement, can use date functions in which you can find the instructions on how to accomplish this in the article below. 

    Creating standard calculated metrics and attributes

    Best regards. 

  • Raman Kalia

    Adding to the thread as I could create report on parameters of my last post.

    I've to add another field to the report, where I'm finding it bit difficult to put things together.

    I would like to show count of tickets that have not been given any public reply for over a week. This means I will calculate on tickets created more than 7 days back.

    It is easier to derive tickets created more than a week ago that are un-resolved and do not have public reply (VALUE(Agent replies) < 1) but couldn't place exclusion based on ticket update attribute/metric. It is tricky as these tickets might have got updated (through internal comments) in last week and throughout.

    Somehow I couldn't also find reference to place a date range (like insights Event(date)) formula, to place in standard calculation of Explore.

    Hope I could make some sense.

  • Brett Bowser
    Zendesk Community Team

    Hey Raman,

    It looks like you have a ticket open with our Customer Care team regarding this standard calculated metric. We will continue working with you in that ticket to get your questions answered.



Por favor, entrar para comentar.

Powered by Zendesk