Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jopper1988
Frequent Visitor

SLA calculation

Hi, 

 

I'm making a dashboard for our numbers of the telephone. What i want to do is the following:

 

Calculate a SLA between Accepted < 20 seconds and Missed Calls. 

 

This is the formula that is used in the report tool:

 

SLA = [Accepted Queuetime < 20] / ([Accepted]+[Missed])

 

how can i use this in PowerBI

1 ACCEPTED SOLUTION

@jopper1988 you mean like this?

AcceptedQueuetime<20 = calculate(countrows(table), queuetime < 20)

Accepted = sum(Accepted)

missed= sum(Missed)

 

SLA = divide(AcceptedQueuetime <20, (accepted + missed))

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
vanessafvg
Super User
Super User

@jopper1988 little bit difficult to conceptualise this without seeing your data?

 

 

in order to understand the underlying base measures in your calculation can you post screen shots of your data, is this at a row level or at a summarized level?

 

can you also give defitnions for accepted queuetime, accepted, missed etc?

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi, 

 

Tnx for your help. I took some print screens of the data:

 

Accepted Calls.PNGMissedCalls.PNGqueuetime.PNG

@jopper1988 you mean like this?

AcceptedQueuetime<20 = calculate(countrows(table), queuetime < 20)

Accepted = sum(Accepted)

missed= sum(Missed)

 

SLA = divide(AcceptedQueuetime <20, (accepted + missed))

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




If i use the code i get a error that the syntax is incorrect. 

Error.PNG

@jopper1988 yes but you can't just paste it all in, if you are learning power bi from scratch the onus is on you to get the basic understanding of how it works.

 

each of those are separate measure which you need to create separately.

 

please refer to these guided learning videos to get the required basic knowledge to use power bi

 

https://powerbi.microsoft.com/en-us/guided-learning/





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




@jopper1988 

 

you could paste this code in, but as i said in the last post, best to get up to speed on your power bi knowledge

 

 

SLA =
VAR AcceptedQueuetime20 =
    CALCULATE ( COUNTROWS ( table ), queuetime < 20 )
VAR Accepted =
    SUM ( table[Accepted] )
VAR missed =
    SUM ( table[Missed] )
RETURN
    DIVIDE ( AcceptedQueuetime < 20, ( accepted + missed ) )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.