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.
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
Solved! Go to 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))
Proud to be a 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?
Proud to be a Super User!
Hi,
Tnx for your help. I took some print screens of the data:
@jopper1988 you mean like this?
AcceptedQueuetime<20 = calculate(countrows(table), queuetime < 20)
Accepted = sum(Accepted)
missed= sum(Missed)
SLA = divide(AcceptedQueuetime <20, (accepted + missed))
Proud to be a Super User!
If i use the code i get a error that the syntax is incorrect.
@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/
Proud to be a Super User!
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 ) )
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |