You need to sign in to do that
Don't have an account?
damo2929
Forumla data type conversion issue
I am trying to write a formula that check the current stage and adds the number of days better two dates to another int number.
here is my formual what am trying to do
IF( ISPICKVAL( StageName , '0 Identify') , ROUND((NOW() - DQ_Days_Since_Stage_Change__c) +DQ_Duration_Stage_0__c , 0), DQ_Duration_Stage_0__c )
but keep getting the following error Error: Incorrect parameter for function 'ROUND()'. Expected Number, received DateTime
any ides of how to fix this as all the examples use this approch and work.
when you created this formula field select the number instead of date time, this should resolve the issue
The expression 'NOW() - DQ_Days_Since_Stage_Change__c' will return a Date/Time value and will not return a number value which is why you are getting the error message because the ROUND() function takes a number as a parameter.
Could you please elaborate the requirement - I cannot understand the part "adds the number of days better two dates to another int number"