Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
| Due date | Status | Task_status | SLA | 
| 13/10/2022 | History | Task Completed | Pass | 
| 13/10/2022 | History | Work in progress | Fail | 
| 13/10/2022 | Cancelled | Assigned | Fail | 
| 20/10/2022 | Assinged | Failed | 
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"
Solved! Go to Solution.
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"
    )
)
					
				
			
			
				
			
			
				
			
			
				
			
			
			
			
			
		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"
    )
)
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
            | User | Count | 
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |