CRM Analytics ダッシュボードのテーブルウィジェットで SAQL を使用して時間ベースの列 (M-1、M-2、MTD、QTD、YTD などのローリング「月」列、または 2026-05、2026-06 などのカレンダー月キー) を動的に生成する場合、ウィジェットで構成された条件付き書式ルールは、新しい列が表示されても引き継がれません。
次の状況が発生します。
これは想定された動作です。条件付き書式ルールは静的なウィジェットメタデータであり、クエリ駆動ではありません。ルールは、構成時にウィジェット定義内に存在する特定の列名に対して作成されます。SAQL から動的に生成された列には、明示的に追加されるまで条件付き書式ルールは適用されません。
オプション 1 — 将来の列に対してルールを事前構成する:
今後 12 ~ 24 か月分の条件付き書式ルールを事前に追加します。それらの列にまだデータが含まれていない場合でも、その列名のデータが表示されるとルールが自動的に有効になります。今後の期間に対してルールを拡張するために、四半期ごとまたは年ごとのメンテナンス作業を定義します。
オプション 2 — SAQL ベースの書式設定 (完全に動的なテーブルで推奨):
ウィジェットレベルの条件付き書式設定の代わりに、case ステートメントを使用してカラー項目またはステータス項目を出力する書式設定ロジックを SAQL クエリに直接実装し、その項目をテーブルの列として参照します。
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';
オプション 3 — 静的な列定義:
動的な列生成を削除し、高度なエディターの列の配列で想定される日付範囲 (例: 今後 12 ~ 24 か月) の静的な列を直接定義します。定義されたすべての列に条件付き書式を適用します。翌年の列を追加するために、ウィジェット定義を毎年更新します。
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.