[SalesForce] Object formula fields showing different results – Record detail page Vs Report

I have a formula field with type checkbox on custom object.This field gets calculated based on two Date fields.

Formula logic :

IsCallNeeded =  
 NOT(
   OR(
     Date_1__c > (TODAY() - 15), 
     Date_2__c > (TODAY() - 7)
   )
 )

I have some records in that custom object with both date fields are NULL.When I view the record in detail page,the checkbox is being checked. But when I see the same record in report,it's unchecked.

Detail Page
enter image description here

Report Screeen
enter image description here

Can any one help me to understand why its showing different results in report and detail page?

Best Answer

as mentioned in the other answer you can follow up with Salesforce support on why the formula gives different results between the report and the detail page.

meanwhile to get consistent behaviour you can use ISBLANK function on the date fields before doing the comparison .. something like this..

IF(
   OR( ISBLANK(Date_1__c), ISBLANK(Date_2__c) ), 
   FALSE,
   NOT( OR( Date_1__c > (TODAY() - 15), Date_2__c > (TODAY() - 7) ) ) 
) 
Related Topic