Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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 ID | Status | Todays Date | Expected Fix Date | Closed Date | SLA Status |
1 | Open | 01/04/2022 | 05/04/2022 | On-Track | |
2 | Closed | 01/04/2022 | 06/04/2022 | 29/03/2022 | HIT |
3 | Open | 01/04/2022 | 29/03/2022 | Breach | |
4 | Closed | 01/04/2022 | 29/03/2022 | 01/04/2022 | MISS |
Cheers
Dan
Solved! Go to Solution.
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"
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 😄