You need to sign in to do that
Don't have an account?

Case formula return error
Hi,
I am adding number of years or months or days based on the pick list value selected below is the case formula used it is working proper for years values for months and days it is displaying error please suggest what might be the mistake in the below formula.
Thanks
Sudhir
I am adding number of years or months or days based on the pick list value selected below is the case formula used it is working proper for years values for months and days it is displaying error please suggest what might be the mistake in the below formula.
CASE(1, IF(ISPICKVAL (cldy_uom__c, "Year(s)"),1,0), ( DATE(YEAR(cldy_subscription_start_date__c) + VALUE(Subscription_Term_Formula__c), MONTH(cldy_subscription_start_date__c), DAY(cldy_subscription_start_date__c)) ), IF(ISPICKVAL (cldy_uom__c, "Month(s)"),1,0), ( DATE(YEAR(cldy_subscription_start_date__c), MONTH(cldy_subscription_start_date__c) + VALUE(Subscription_Term_Formula__c), DAY(cldy_subscription_start_date__c)) ), IF(ISPICKVAL (cldy_uom__c, "Day(s)"),1,0), ( DATE(YEAR(cldy_subscription_start_date__c), MONTH(cldy_subscription_start_date__c), DAY(cldy_subscription_start_date__c) + VALUE(Subscription_Term_Formula__c)) ), ( DATE(YEAR(cldy_subscription_start_date__c), MONTH(cldy_subscription_start_date__c), DAY(cldy_subscription_start_date__c) ) ) )
Thanks
Sudhir
What is your Subscription_Term_Formula__c?
Sorry for the detail Subscription_Term_Formula__c was another formula value been used now have modified removing this field please find updated formula below please check and let me know I am still getting error sometime for days options
Thanks
Sudhir
Use this
If this does not work, the problem lies with Subscription_Term_Formula__c.