Forum Discussion
SLA calculation
- 9 years ago
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 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
- vanessafvg9 years agoCommunity Champion
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 ) )