Suite | Professional, Enterprise, or Enterprise Plus |
Support with | Explore Professional or Enterprise |
在本文中,您将使用在 创建标准计算指标和属性 中学到的知识,通过示例练习创建标准计算属性。
本文章包含以下部分:
第 1 步:确定您要报告的内容
本例中,您要创建一个显示以下信息的报告:
- 您 Zendesk 帐户中Support工单的首次回复时间中值(分钟)
- 工单在哪个渠道中创建
查阅 Zendesk Support 的指标和属性后,您知道可以使用 首次回复时间(分钟) 指标和 工单渠道 属性来创建报告。
第 2 步:开始创建报告
现在您已知道要查找的信息了,可以开始创建报告了。
开始创建报告
- 在 Explore 中,单击报告图标 (
)。
- 单击新建报告按钮。
- 在 选择数据集 页面上,选择 Support - 工单 数据集,然后单击 开始报告。报告生成器随即打开。
- 在 指标 面板中,单击 添加 ,选择 事件之间的持续时间 - 日历时间(分钟)>首次回复时间(分钟)。
- 在行 面板中,单击 添加 并选择 工单>工单渠道。
您将得到一个看起来像这样的图表:
第 3 步:创建标准计算属性
根据您的报告,您知道一些渠道的首次回复时间中值比其他渠道快得多。现在您想知道每个渠道的首次回复时间与工单量有何关联。您决定更新报告以回答以下问题:
- 每个渠道中创建了多少工单?
- 对于每个渠道,多少张首次回复时间较快的工单,以及多少张首次回复时间较慢的工单?
“首次回复时间快”或“首次回复时间慢”没有默认 Explore 属性,因此您需要创建一个标准计算属性来定义这些概念,并将其反映在报告中。您希望使用以下逻辑创建一个标准计算属性:
- 如果工单的首次回复时间不到 10 分钟,则将其归入“快速响应”组
- 如果工单的首次回复时间大于或等于 10 分钟,则将其归入“缓慢响应”
查阅 Explore 函数参考后,您认为公式中使用的最佳函数是 IF THEN ELSE。此功能允许您评估一个条件(首次回复时间),然后根据评估结果进行操作(标记响应快或慢)。以下公式是返回所需结果的有效方法:
IF VALUE(First reply time (min)) != NULL AND VALUE(First reply time (min)) >= 10 THEN "Slow response"
ELIF VALUE(First reply time (min)) != NULL THEN "Fast response"
ENDIF
现在您已完成公式,是时候创建标准计算属性了。
创建标准计算属性
- 在您的报告中,单击 “计算” 菜单 (
) 并选择 标准计算属性。
- 在 名称 字段中,输入描述性名称,例如 响应时间快还是慢?稍后将计算属性添加到报告时会用到此名称。
- 在 公式 字段中,粘贴公式:
IF VALUE(First reply time (min)) != NULL AND VALUE(First reply time (min)) >= 10 THEN "Slow response" ELIF VALUE(First reply time (min)) != NULL THEN "Fast response" ENDIF
- 在计算自下拉菜单中,选择工单渠道。这可确保工单仅根据工单渠道属性进行计算。
- 单击 保存 以保存属性,并关闭 标准计算属性 面板。
现在您已创建了标准计算属性,它的作用就和任何默认属性一样。它可用于相同数据集的任何报告,可供任何有权访问该数据集的人使用。
第 4 步:将您的属性添加到报告中
接下来,要使用新属性,请将其添加到报告中。您还将添加一个新的指标来计算工单数量。
将指标和标准计算属性添加到报告中
- 在 指标 面板中,单击 添加 并选择 工单>工单,然后单击 应用。
- 单击刚添加的 工单 指标,并将其聚合器更改为 D_COUNT。
- 在行面板中,单击添加。
- 在属性列表中,选择 计算属性>响应时间快还是慢?(上面创建的属性)并单击 应用。
- 要筛选掉没有回复的工单(空白行),选择 结果操作 菜单 (
),单击 指标筛选,选择移除 MED(首次回复时间(分钟))下的 空白值 ,然后单击 应用。
现在,报告会显示每个渠道有多少张快速响应(首次回复在 10 分钟内)或慢速响应(首次回复在 10 分钟后)的工单。
请注意,与报告的首个版本相比 ,首次回复时间(分钟) 列的值已更改。由于您已将计算属性添加到报告中,除了 工单渠道 属性之外 ,首次回复时间(分钟) 指标现在也根据该属性进行切片。换言之,指标现在不再显示某个渠道中所有工单的首次回复时间值,而是显示每个渠道“响应快”和“响应慢”组工单的首次回复时间值。
第 5 步:编辑属性的公式
- 如果工单的首次回复时间不到 10 分钟,将其分组到“快速响应”(和以前一样)
- 如果工单的首次回复时间值大于或等于 10 分钟但小于 30 分钟,则将其归入“缓慢响应”
- 如果工单的首次回复时间大于或等于 30 分钟,则将其归入“响应速度非常慢”
要更新属性,您将嵌套多个 IF THEN ELSE 函数来评估额外条件。但公式的基本结构与您已创建的类似。
要编辑公式
- 在行 面板中,单击 响应时间快还是慢? 属性。
- 单击属性名称下方的铅笔图标。
标准计算属性 面板随即打开,显示您的标准计算属性。 - 用下面的内容替换公式:
IF VALUE(First reply time (min)) != NULL AND VALUE(First reply time (min)) >= 30 THEN "Very slow response" ELIF VALUE(First reply time (min)) != NULL AND VALUE(First reply time (min)) >= 10 AND VALUE(First reply time (min)) < 30 THEN "Slow response" ELIF VALUE(First reply time (min)) != NULL AND VALUE(First reply time (min)) < 10 THEN "Fast response" ENDIF
这是一个有用的方法,可以避免编写多个 IF THEN ELSE 函数。您也可以使用 SWITCH 函数来实现类似的结果。
- 单击保存。
Explore 会自动重新计算并显示结果,其中现在包括“响应非常缓慢”组。
翻译免责声明:本文章使用自动翻译软件翻译,以便您了解基本内容。 我们已采取合理措施提供准确翻译,但不保证翻译准确性
如对翻译准确性有任何疑问,请以文章的英语版本为准。
15 条评论
Annaya Thammalokapitak
Any idea how to create calculate metrics in Beta builder?
0
Alex Zheng
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
Joonas Niilerpalo
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
Noly Maron Unson
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
Çağatay Kater
Can custom metric or attributes be used in Views?
0
James G
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
Andrews Dumith
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
Erin O'Callaghan
Thanks for reporting this, 1265047327990! I've fixed the Understanding reports link now.
0
Brandon Frei
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
Matt Farrington-Smith
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
登录再写评论。