You need to sign in to do that
Don't have an account?
Alex.Acosta
Formula works on page layout, but displays #Error! on Report
I'm having an issue with a age range formula that's returning a numeric value back. On the page layout it displays the field value correctly, but whenever I try to run a report with it, it just throws me the error on the field column value. Anyone has this issue before?
Formula:
IF( AND( NOT(ISNULL(CustomFieldDate__c)), DateValue(TEXT(CustomFieldDate__c)) > DateValue(Text(CreatedDate)) ), DateValue(TEXT(CustomFieldDate__c)) - DateValue(Text(CreatedDate)), 0 )
Hi Alex,
Just tried in my Dev org. It showed #Error! in my report too. So digged more about it - couldn't find a supporting document. So went back to what I am good at - trouble shooting. I just changed:
Please note that CustomFieldDate__c in my Org is Date field, not DateTime. If your's is DateTime, then you have to use DateValue(CustomFieldDate__c).
My guess is that it is showing error because your converting date to text, again creating DateValue from text, report is not able to compile it. Just guessing...
All Answers
Hi Alex,
Just tried in my Dev org. It showed #Error! in my report too. So digged more about it - couldn't find a supporting document. So went back to what I am good at - trouble shooting. I just changed:
Please note that CustomFieldDate__c in my Org is Date field, not DateTime. If your's is DateTime, then you have to use DateValue(CustomFieldDate__c).
My guess is that it is showing error because your converting date to text, again creating DateValue from text, report is not able to compile it. Just guessing...
That seemed to be the problem. Thank you very much for your help!