Skip to content
Bug Barometer

Calculated Insight DATE_ADD function errors when attempting to reference a Number field instead of a static integer value

Salesforce says this is fixed.

Summary

The following Help document outlines the option of using the DATE_ADD function to add a time or date interval value to a date value:
https://help.salesforce.com/s/articleView?id=sf.c360_a_calculated_insights_date_time_operators.htm&type=5

When creating a Calculated Insight and configuring your SQL statement within Salesforce CDP you are able to reference a Number field from a data source as the second parameter of the DATE_ADD function. However, SQL statements configured this way will error. Instead you need to reference a static integer as the value (e.g. 5, 10 etc).

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed

    Nov 30, 2026

Also open in Calculated Insights