When a Table widget in a CRM Analytics dashboard uses SAQL to dynamically generate time-based columns, conditional formatting rules configured on the widget do not carry over to new columns as they appear. Examples of these columns are rolling month columns such as M-1, M-2, MTD, QTD, and YTD, or calendar month keys such as 2026-05 and 2026-06.
Users observe the following behavior:
This article answers why conditional formatting does not apply to dynamically generated month columns in a CRM Analytics Table widget, and which options you can use to format those columns.
This is expected behavior. Conditional formatting rules are static widget metadata, and they are not query-driven. Rules are created against specific column names that exist in the widget definition at the time of configuration. Dynamically generated columns from SAQL have no conditional formatting rules until you explicitly add them.
Add conditional formatting rules for the next 12 to 24 months ahead of time. Even if those columns contain no data yet, the rules activate automatically when data appears for that column name. Establish a quarterly or annual maintenance task to extend the rules for upcoming periods.
Instead of widget-level conditional formatting, implement the formatting logic directly in the SAQL query. Use case statements to emit a color or status field, and then reference that field as a column in the table:
q = load "dataset"; q = foreach q generate ..., case when 'M-1' > target then "red" when 'M-1' >= threshold then "green" else "yellow" end as 'M-1_color';
This query adds a column named M-1_color. The column holds red when the M-1 value is above the target, green when it is at or above the threshold, and yellow otherwise.
Remove dynamic column generation and define static columns for the expected date range (for example, the next 12 to 24 months) directly in the Advanced Editor columns array. Apply conditional formatting to all defined columns. Update the widget definition annually to add the next year's columns.
005433454

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.