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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX query for SLA tacking

Due dateStatusTask_statusSLA
13/10/2022HistoryTask CompletedPass
13/10/2022HistoryWork in progressFail
13/10/2022CancelledAssignedFail
20/10/2022 AssingedFailed

I want to write Dax query to track if SLA was missed. If task due date is in past and Task status is "Cancelled" or "Task Completed" SLA miss should say "Pass" Else say "Fail". If date is in future SLA miss should say "on track"

1 ACCEPTED SOLUTION
Anonymous
Not applicable

SLA Status = 
IF(
    Task_data[Task_due_date] >= TODAY(),
    "On track",
    IF(
        OR(
            Task_data[Task_Status] = "Task Completed",
            Task_data[Task_Status] = "Cancelled"
        ),
        "Complete",
        "Breached"
    )
)

View solution in original post

1 REPLY 1
Anonymous
Not applicable

SLA Status = 
IF(
    Task_data[Task_due_date] >= TODAY(),
    "On track",
    IF(
        OR(
            Task_data[Task_Status] = "Task Completed",
            Task_data[Task_Status] = "Cancelled"
        ),
        "Complete",
        "Breached"
    )
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.