Forum Discussion

DanielHolland's avatar
DanielHolland
Frequent Visitor
4 years ago
Solved

SLA Status on Power BI Report

Hi All, 

 

Im looking for Power Query formula to work out the "SLA Status" of My IT Tickets. 

 

Here is a Table im Working with and im looking to populate the "SLA Status" field Based on "Status", Todays date", "Expected Fix Date", "Closed Date" 

 

Is this Possible? Im then going to Display this in a Pie. which is traight forward.

 

Ticket IDStatusTodays DateExpected Fix DateClosed DateSLA Status
1Open01/04/202205/04/2022 On-Track
2Closed01/04/202206/04/202229/03/2022HIT
3Open01/04/202229/03/2022 Breach
4Closed01/04/202229/03/202201/04/2022MISS

 

Cheers 

 

Dan

  • Below is the formula

    = if [Status]="Closed" and [Closed Date]>[Expected Fix Date] then "MISS" 
    else if  [Status]="Closed" and [Closed Date]<=[Expected Fix Date] then "HIT" 
    else if [Status]="Open" and [Expected Fix Date]>=[Todays Date] then "On-Track"
    else "Breach"

2 Replies

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Most Valuable Professional

    Below is the formula

    = if [Status]="Closed" and [Closed Date]>[Expected Fix Date] then "MISS" 
    else if  [Status]="Closed" and [Closed Date]<=[Expected Fix Date] then "HIT" 
    else if [Status]="Open" and [Expected Fix Date]>=[Todays Date] then "On-Track"
    else "Breach"