Nested IF AND with Multiple logics - Not bringing the expected outcome
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")))))
Answers
-
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,
Paul - Smarter Business Processes.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!