Skip to main content
{% target_comparison 
    name="vs Budget" 
    target="budget_amount"
/%}

Examples

Compare vs Fixed Goal

{% target_comparison 
    name="vs 100K Goal" 
    target="100000"
/%}

Compare vs Aggregated Target

{% target_comparison 
    name="vs Target" 
    target="sum(target_sales)"
/%}

Attributes

name
String
required
Display name shown in the dropdown (e.g., “vs Budget”)
target
String
required
Target value for comparison. Can be a column name, aggregation (e.g., “sum(budget)”), or literal value.
display_type
String
Default display type for this comparison. Options: pct (percentage change), abs (absolute change), compared_value (target value)Allowed values:
  • pct
  • abs
  • compared_value
text
String
Custom comparison label text (overrides default “vs ”)
pct_fmt
String
Format code for percentage values
abs_fmt
String
Format code for absolute values
down_is_good
Boolean
default:"false"
If true, negative changes are shown as positive (green)

Allowed Parents