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).
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
First tracked here as Solution Deployed
Nov 30, 2026
Also open in Calculated Insights
Data 360: SQL Insight Builder Calculated Insights are not available in Segment Builder
Solution in ProgressWorkaroundData Cloud / Calculated InsightsSpring '27Reported Nov 16, 202618 reports18reports
Data Cloud | Syntax Validation Error while Editing an active working Calculated Insight
In ReviewData Cloud / Calculated InsightsSpring '25Reported Feb 19, 202516 reports16reports
Creation of reports on calculated insights of type Data 360 SQL dialect fails
In ReviewWorkaroundData Cloud / Calculated InsightsWinter '27Reported Nov 16, 20262 reports2reports
Flow Decision Error Due to Null Value Handling in Calculated Insight
In ReviewData Cloud / Calculated InsightsSpring '26Reported Oct 30, 20261 report1report