Hi,
I’m trying to calculate the number of tickets that have the response time met.
The response time threshold is set upon ticket severity, thus I need to have this count based on severity.
I’m using the following measure:
Count(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
DateInPeriod(
([Measures].[Issue created date]),
[Time].CurrentHierarchyMember
)
AND
(CASE WHEN
([Measures].[Transitions to status],
[Transition Status].[Waiting for customer],
[Time].CurrentHierarchy.DefaultMember) > 0
THEN
DateDiffMinutes(
[Measures].[Issue created date],
([Measures].[Transition to status first date],
[Transition Status].[Waiting for customer],
[Time].CurrentHierarchy.DefaultMember)
)
END
) < 120
)
)
this returns correctly the number of tickets for which the time spent before going to transition “waiting for customer” is less than 120 minutes.
I would need to include in the same measure the differente cases, and have the same count upon the different severities, for which the response time if not the same.
I have tried something like:
Count(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
DateInPeriod(
([Measures].[Issue created date]),
[Time].CurrentHierarchyMember
)
AND
(CASE WHEN [Incident_Severity].CurrentMember.Name = ‘Critical’
THEN
(CASE WHEN
[Transition Status].[Waiting for customer],
[Time].CurrentHierarchy.DefaultMember) > 0
THEN
DateDiffMinutes(
[Measures].[Issue created date],
([Measures].[Transition to status first date],
[Transition Status].[Waiting for customer],
[Time].CurrentHierarchy.DefaultMember)
)
END)
END) > 30
)
)
which again looks ok on the count that I get,
however, I’d like to have all possible cases inside the same measure, I mean, being able to add the count for all others values for the severity, but I didn’t succeed to get it.
I’d be happy to have your thoughts and suggestions
thanks,
alexandre