Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DanielHolland
Frequent Visitor

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

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

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"

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

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"

Thank you! Worked a treat 😄 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Kudoed Authors