You need to sign in to do that
Don't have an account?
Sheree Kenner
formula to return missed if time is greater than 30
Hello,
I have one field that is called "TimetoAssignSLA__c" which consists of the following formula:
IF(BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c > 0 ,TEXT( FLOOR( BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c ) ) & " days "& TEXT( FLOOR( MOD( (BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c ) * 24, 24 ) ) ) & " hours "
& TEXT( ROUND( MOD( (BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c ) * 24 * 60, 60 ), 0) ) & " minutes","")
That works exactly as I need it to and now I need to create a new field called "SLAMet" that determines if the result of "TimetoAssignSLA__c" column is >30 minutes. If so, I want the results to say "MISSED". If <30 minutes, I want the results to say "MET".
Would someone be so kind to help me with the formula for the SLA Met? Please note, I will need the field type as well to ensure I set the fornula up properly. Also, is there a way if it's MISSED to make the text RED and if it's MET to make the text GREEN? If so, would you please include that in the formula as well?
Formulas aren't my strong suit and any help would be most appreciated.
Thanks,
Sheree
I have one field that is called "TimetoAssignSLA__c" which consists of the following formula:
IF(BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c > 0 ,TEXT( FLOOR( BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c ) ) & " days "& TEXT( FLOOR( MOD( (BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c ) * 24, 24 ) ) ) & " hours "
& TEXT( ROUND( MOD( (BMCServiceDesk__StatusChangeDate__c - BMCServiceDesk__openDateTime__c ) * 24 * 60, 60 ), 0) ) & " minutes","")
That works exactly as I need it to and now I need to create a new field called "SLAMet" that determines if the result of "TimetoAssignSLA__c" column is >30 minutes. If so, I want the results to say "MISSED". If <30 minutes, I want the results to say "MET".
Would someone be so kind to help me with the formula for the SLA Met? Please note, I will need the field type as well to ensure I set the fornula up properly. Also, is there a way if it's MISSED to make the text RED and if it's MET to make the text GREEN? If so, would you please include that in the formula as well?
Formulas aren't my strong suit and any help would be most appreciated.
Thanks,
Sheree
Good Luck Sorted out now :)
Regards,
Santosh
All Answers
Try below formula for your "SLAMet" Field. For making the text red it will be easier if you create 2 Image for "Missed" and "Met" in respective colours and instead of returning "Missed" or "Met" from formula field you can returnt the image that will work for you.
You need to use image tag for that sample code is below:
Refer below link if you need any help for how to add image and use it in Formula Field:
https://help.salesforce.com/articleView?id=000327122&type=1&mode=1
Do let me know if it helps you and close your query by marking it as solved.
Regards,
Santosh
Regards
Santosh Kumar
The simple one without image:
Do let me know if it helps you and close your query by marking it as solved.
Regards,
Santosh
Good Luck Sorted out now :)
Regards,
Santosh
Regards,
Santosh