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
Premlatapandey9
Microsoft Employee
Microsoft Employee

Check whether Incident Missed SLA or not

Hello Everyone, I'm seeking guidance on how to structure the DAX formula to calculate if an incident missed its SLA based on the given criteria below. Specifically, I need to compare the incident based on the severatiy of incident and related defined SLA 

 

SLA is defined as below

 

TTA for Sev 1 is 1 day

TTA for Sev 2 is 2 days

TTA for Sev 3 is 4 day

 

TTM for Sev 1 is 1 day

TTM for Sev 2 is 2 days

TTM for Sev 3 is 4 day

 

TTR for Sev 1 is 5 day

TTR for Sev 2 is 6 days

TTR for Sev 3 is 7 day

 

and Data columns in data set is like below 

Incident IdTTM (Day)TTR(Day)TTA(Day)SeveritySLA Check
98484742012 
34748481333 
83746437552 
484747447861 
47474642633 

 

Please help me with the Dax query to achive this result if possible any hlep in this regard is much appreciated

Thanks and Regards

@member @help @needurgenthelp

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Premlatapandey9 ,

Please try to create a new column with below dax formula:

SLA Check =
VAR _sev = [Severity]
VAR _ttm = [TTM (Day)]
VAR _ttr = [TTR(Day)]
VAR _tta = [TTA(Day)]
VAR _val =
    SWITCH (
        _sev,
        1,
            IF ( _tta <= 1 && _ttm <= 1 && _ttr <= 5, "Not Miss", "Miss" ),
        2,
            IF ( _tta <= 1 && _ttm <= 2 && _ttr <= 6, "Not Miss", "Miss" ),
        3,
            IF ( _tta <= 4 && _ttm <= 4 && _ttr <= 7, "Not Miss", "Miss" )
    )
RETURN
    _val

vbinbinyumsft_0-1693189258048.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Premlatapandey9 ,

Please try to create a new column with below dax formula:

SLA Check =
VAR _sev = [Severity]
VAR _ttm = [TTM (Day)]
VAR _ttr = [TTR(Day)]
VAR _tta = [TTA(Day)]
VAR _val =
    SWITCH (
        _sev,
        1,
            IF ( _tta <= 1 && _ttm <= 1 && _ttr <= 5, "Not Miss", "Miss" ),
        2,
            IF ( _tta <= 1 && _ttm <= 2 && _ttr <= 6, "Not Miss", "Miss" ),
        3,
            IF ( _tta <= 4 && _ttm <= 4 && _ttr <= 7, "Not Miss", "Miss" )
    )
RETURN
    _val

vbinbinyumsft_0-1693189258048.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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