Add a measure to a table, including comparisons, sparklines, and more
boolean
- Whether a downward trend is considered positiveboolean
- Whether to show the delta symbolenum
- Position of the delta symbol relative to the valuearray
enum
string
- X-axis column (time/category column for sparkline) - required when viz type is sparklinestring
- Color for the sparklineboolean
- Whether to scale the y-axis to the data rangeenum
- Date granularity for sparkline time seriesobject
string
- Custom color for positive values. If not specified, uses default blue.string
- Custom color for negative values. If not specified, uses bar_color if set, otherwise default red.boolean
- When true, hides the text values and shows only the bar visualization.boolean
- When true, scales bars to the data range instead of including zero. This makes bars use the full available width when all values are far from zero.array
- Custom color scale for type=“color”. Must be an array of colors (e.g., [“#ff0000”, “#00ff00”, “#0000ff”]).string
- Column to use for color scale calculations when type=“color”. If not specified, the measure column itself is used for scaling.enum
- How to calculate min/max for color and bar visualizations. “individual” calculates range per column (default), “shared” calculates range across all related columns.enum
- Type of comparison to perform. Options: prior year (same period last year), prior period (previous period of same duration), target (compare against a target value)enum
- What to display for comparison. Options: compared_value (comparison period value), abs (absolute change), pct (percentage change)string
- Target value for target comparison. Can be a column name, aggregation (e.g., “sum(target_sales)”), or literal value.enum
string