Hi All,
I want to calculate the percentage of tickets resolved within Service Level Agreement. I wrote the following DAX code:
resolved tickets within SLA =
VAR tickets = Count(tickets[ticketID])
VAR allgood = Calculate([resolution])
Return
Calculate(DIVIDE(allgood, tickets,0)
The result is in percentage. Is this code correct? or did I miss any step?
Thank you,
Chuk
Sorry the column [resolution] contains āFalseā. That is where the resolution is false.
Hi Chuk,
Why are you using variables here, are they necessary? Also, one thing Iāve found is that when Iām grabbing case data, sometimes, depending on the system Iām pulling from, there are multiple listings for ticketID, so Iād do it a little different based on the information youāve given so far.
Measures:
Total Tickets = DISTINCTCOUNT(āTicketsā[ticketID])
Within SLA = CALCULATE ( COUNT (āTicketsā [resolution]), āTicketsā [resolution] = āTrueā)
SLA % = DIVIDE( Within SLA, Total Tickets, 0)
I hope this helps,
mickeydjw
1 Like
Hi @Chukliz, weāve noticed that no response has been received from you since February 04, 2020. We just want to check if you still need further help with this post? In case there wonāt be any activity on it in the next few days, weāll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box. Thanks!