Skip to main content
Drew Elston (Optimizely) 님이 #Sales And Marketing에 질문했습니다

Hi SF Community,

I am writing a custom salesforce formula to calculate a total # of days for implementation depending on four factors. 

Below is my formual today.

IF(Implementation_Paused__c <  DATE(2014,1,1),((SB_Account_Created_Date__c - Implementation_Restart_Date__c) + (Implementation_Paused__c - Onboarding_Start_Date__c)),SB_Account_Created_Date__c - Onboarding_Start_Date__c)

 

If it's a normal implementation it is two fields:

SB_Account_Created_Date__c - Onboarding_Start_Date__c

however, if it's an implementation where "Impelementation is paused" I want it to run through this order of operations:

((SB_Account_Created_Date__c - Implementation_Restart_Date__c) + (Implementation_Paused__c - Onboarding_Start_Date__c))

How would I explain IF(Implementation_Paused__c, has any field in it, to follow the longer formula?

Thank you in advance,

 

-Drew
답변 2개
  1. 2018년 8월 14일 오후 4:25
    Try this:

     

    IF(NOT(ISBLANK(Implementation_Paused__c)),

     

    ((SB_Account_Created_Date__c - Implementation_Restart_Date__c) + (Implementation_Paused__c - Onboarding_Start_Date__c)),

     

    SB_Account_Created_Date__c - Onboarding_Start_Date__c

     

    )
0/9000