# Nested IF AND with Multiple logics - Not bringing the expected outcome

Options

I am trying to write the following logic to calculate the SLA breach.

LOW - Greater than - 7 days

MEDIUM - Greater than - 4 days

HIGH - Greater than - 2 days

CRITICAL - Greater than - 1 day.

However, the formula is not accurately bringing the breach/no breach as expected. Except "Critical" all of the other severity logics are as showing as "Not Breached".

=IF(Severity@row = "", "", IF(AND(Severity@row = "Low", [Total Ticket Duration]@row > "7"), "Breach", IF(AND(Severity@row = "Medium", [Total Ticket Duration]@row > "4"), "Breach", IF(AND(Severity@row = "High", [Total Ticket Duration]@row > "2"), "Breach", IF(AND(Severity@row = "Critical", [Total Ticket Duration]@row > "1"), "Breach", "No Breach")))))

Tags:

• Options

Hello Tamiz,

I just tried your formula and it works as you would expect it if you take the quote marks away from the number values:

IF(AND(Severity@row = "Low", [Total Ticket Duration]@row > 7), ...

I hope that helps. If I've misundertstood, please let me know and I will look again.

Have a great day,