创建标准计算指标和属性:实践教程



image avatar

Erin O'Callaghan

Zendesk Documentation Team

已于 2025年3月11日 编辑


2

0

15 条评论

Any idea how to create calculate metrics in Beta builder?

0


Hey Joonas,
 
You'll want to use the date_diff function as described in the article here. So you can use DATE_DIFF([Ticket created - date],[Purchase Date],"nb_of_days") in your formula instead.

0


Hello!

I'm trying to create a metric:

Tickets created within 1 month of purchase, 2 months of purchase etc. I'm having trouble with the metric:

IF [Ticket created] - [Purchase Date] <=30 THEN [Ticket] ENDIF

Cant figure out, how the date difference should be written.



 

0


Hi Çağatay,

Custom metrics and attributes can only be used in Explore reporting and are not present as conditions in Views. You can check the list of usable conditions for views in the article Creating views to build customized lists of tickets.

I hope this helps.

 

0


Can custom metric or attributes be used in Views?

0


Hello Andrews, 

Since your goal is to measure the number of days the ticket is unsolved, I would recommend using the default metric "Unsolved tickets age (days)" instead. This metric should give you the data that you are looking for based on your use case. You may find the complete definition of that metric in our list of metrics here - Tickets metrics

0


Greetings guys, 

Thank you very much for the space to share knowledge and help us understand how this platform works so helpful for us resource managers.

I have been building a ticket database and have used several very beneficial metrics to measure the effectiveness of my team, in fact I only need one to complete the project and build my own graphs.

The metric or attribute that I am missing is the age of the tickets, so searching I found this formula:
IF ([Ticket custom status name] != "Solved")
THEN DATE_DIFF(NOW(), [Ticket created - Timestamp], "nb_of_days")
ENDIF

Which I have pasted to my report but for some reason I don't know, no values are shown in the report and I don't understand why. Possibly one of you has the key to the missing link :)

Thank you so much,

0


Thanks for reporting this, 1265047327990! I've fixed the Understanding reports link now. 

0


In the section "before you start" there are two links to different articles that are recommended. They both link to the same article. The "Understanding Reports" link is the one that is incorrect. 

0


Totally agree with 1265144795190 here - I don't see why we still don't have better management for attributes/calculated metrics. It would be easy no?

I've just had an instance where the attribute I created is no longer hyperlinked in the metric - so I actually have no way of getting to it.

0


登录再写评论。