VALUE aggregator can't be used with calculated metrics. Try another aggregator
回答済み
投稿日時:2023年6月07日
Hi,
I have a calculated metric below which worked fine for months and now all of a sudden I replicated the metric to use a different value and receiving an error.
Error: VALUE aggregator can't be used with calculated metrics. Try another aggregator.
IF (VALUE(First reply time - Business hours (hrs)) < 10)
THEN [Ticket ID]
ENDIF
I then have a Result metric calculation to calculate the %.
In https://support.zendesk.com/hc/en-us/community/posts/4413237775514-Help-with-creating-Explore-report-to-measure-that-took-longer-than-XX-time-to-reply-to the VALUE aggregator is also used.
0
22
22件のコメント
公式
Eugene Orman
James Bransden
It is a fair point. We didn't enforce users from using the VALUE aggregator before, but in the majority of the cases, it didn't work well with the calculated metrics and resulted in broken reports or miscalculations. That's why we advised users only to use it with the database-level metrics as documented here.
Now, the formula validation restricts VALUE aggregator usage with calculated metrics.
You can easily fix your calculations by using the database-level metric, like this:
0
Eugene Orman
Adrian Mitrea, You can simply replace the nested metric VALUE(Wait time (hrs)) with its formula VALUE(Agent wait time (min))+VALUE(Requester wait time (min)). And perhaps slightly clean the final formula, to get something like this:
0
Evangelina Dalabehera S
Hi All,
The above issue is resolved!
Please help on the below metric, here we are trying to get the when the group assignee is changed to another group and how much time spent on previous group assignment.
Where I have calculated metric
IF
ATTRIBUTE_FIX(D_COUNT(Assignment Timestamps - T3 HR Tech), [Ticket ID]) > 0
THEN
IF
[Ticket group] = "T3 HR Tech"
THEN
IF
ATTRIBUTE_FIX(D_COUNT(Assignment Timestamps - T3 HR Tech), [Ticket ID]) > 1
THEN
VALUE(Time Since Last Group Assign (min)) + ATTRIBUTE_FIX(SUM(Time spent in prev group - T3 HR Tech (min)), [Ticket ID])
ELSE
VALUE(Time Since Last Group Assign (min))
ENDIF
ELSE
ATTRIBUTE_FIX(SUM(Time spent in prev group - T3 HR Tech (min)), [Ticket ID])
ENDIF
ENDIF
The calculation for Assignment Timestamps - T3 HR Tech
IF
[Update ticket group] = "T3 HR Tech" AND [Changes - Field name] = "group_id"
THEN
[Update - Timestamp]
ENDIF
The calculation for Time Since Last Group Assign (min)
IF
IN([Ticket status - Unsorted], ARRAY("Solved", "Closed"))
THEN
DATE_DIFF([Ticket solved - Timestamp], DATE([Latest Group Assignment - Timestamp]), "nb_of_minutes")
ELSE
DATE_DIFF(NOW(), DATE([Latest Group Assignment - Timestamp]), "nb_of_minutes")
ENDIF
0
Evangelina Dalabehera S
Hi,
Same error!
Tried with SUM aggregator but result is just empty. please help!
IF (
(
[Ticket status - Unsorted] = "Solved"
OR [Ticket status - Unsorted] = "Closed"
)
AND [Priority Value] != "Urgent 1"
) THEN
IF (
(
[Tier [formula]] = "Tier 1"
AND
VALUE(First resolution time - Business hours (hrs))
- VALUE(Agent wait time - Business hours (hrs))
<= 48
)
OR (
(
[Tier [formula]] = "Tier 2"
OR [Tier [formula]] = "Tier 3"
)
AND (
(
VALUE(First resolution time - Business hours (hrs))
- VALUE(Agent wait time - Business hours (hrs))
<= 72
AND [Priority Value] = "High 2"
)
OR (
VALUE(First resolution time - Business hours (hrs))
- VALUE(Agent wait time - Business hours (hrs))
<= 168
AND [Priority Value] = "Normal/Low 3"
)
)
)
) THEN
1
ENDIF
ENDIF
0
Lindsey Rhyne
Hi, I'm getting the same error but with a pre-built metric: SLA metric breach time (min). Do you know why that is, or how I can fix it? Trying to create a calculated metric that brackets breach time.
0
zAdrian
Troels Lemming Müller. Thanks for your answer.
Using the full resolution time would be less accurate for our interest than the calculated metric, since we want to capture only the times when a ticket was in statuses less than Solved.
From what I know, the full resolution time includes also the time spent in Solved for tickets that were re-opened... correct me if I am wrong.
We want to exclude the period highlighted in the capture from below:
Still looking for alternatives to the calculated metric, with database-level metrics. Hoping that Zendesk experts should be able to help with this, by providing a solution that can easily fix the calculation :)
Otherwise, this change is a downgrade in the service, when no workaround is given to what was possible before.
I will make sure to voice my frustration to our success and account managers that this aggregator was removed for all because there were problems with how it was used by few.
0
Troels Lemming Müller
Adrian Mitrea
Can you use the metric Full resolution time (min)?
https://support.zendesk.com/hc/en-us/articles/4408834848154-About-native-Support-time-duration-metrics
Then you get something like:
0
zAdrian
Hello,
We use this calculated metric (Wait time (hrs)) summing up the time spent only in statuses less than Solved (New+Opem+Pending+On-hold):
And it's used in this formula for defining custom brackets:
Which displays the errors in the attached capture:
Can you please recommend a workaround to define the same formula but with database-level metrics?
Many thanks!
0
Steven Hampson
Hi Troels,
Thanks for the quick response. Yes this did the trick!! Thank you so much, I appreciate it!
Regards,
Steven.
0
Troels Lemming Müller
Steven Hampson
What if you try something like:
We're not using chat, so I can't test it.
0
Steven Hampson
I have the same issue, can anyone help please? I was using a series of standard calculated metrics like:
We have our own brackets that are different from the built in wait time brackets. Now the formula does not work, I have tried the SUM aggregator and get a green tick, but no results. Not a 0, just nothing i.e. blank.
I've tried so many variations of this and I'm at my wit's end.
Thanks,
Steven.
0
サインインしてコメントを残してください。