Forum Discussion
SLA calculation
- 8 years ago
You can use DATEDIFF to calculate the duration between your two event times. However, I would think you would need to wrap that in an IF statement to check that the start of the event was before whatever time the SLA timer stops and that its resolution was after the SLA timer started again if you want to subtract the 64 hours.
SLADuration = var MyDuration = DATEDIFF([Start],[End],hour) RETURN IF([Start]<("SLA Stop Start") && ([End]>("SLA Stop End"),myDuration - 64, myDuration)Obviously some psuedo code in there, but that would be the general idea.
Hi All, im a bit new to using power BI and DAX and i was wondering if anyone would be able to help me out
Im trying to generate the time between creation of a call and resolution of call. But our SLA timer only runs during working days and not over the weekend so i need ot subtract that from the calculation.
What i was thinking was
= ([resolutiontime]-[creationtime])-((number of work weeks between the 2 time/dates)/5 x 64 this is the number of hours the sla is paused for)
Any help would be amazing!