Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Modifying Turnaround Time to be more Dynamic

Hi. I have a question related to the calculation (Dax formulas) for SLA metrics on the processing time for Purchase Orders.   This is one of them: Time_Turnaround = NETWORKDAYS([Created],[Completi...
  • Fowmy's avatar
    Fowmy
    2 years ago

    Anonymous 

    In our example the 1st one is 5 AM so 4 days is correct, the 2nd one should be 3. I modifed to include 5 as well using >=, please check

    Time_Turnaround = 
    
    VAR __Time = HOUR([Created])
    VAR __Diff = NETWORKDAYS([Created],[CompletionDate/Time],1,Distinct(HolidaysTable[Holiday]))
    VAR __Result = IF( __Time >= 17 , __Diff - 1 , __Diff )
    RETURN
        __Result