Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

name: op-overlay-index-vs-ref
kind: operator
category: OVERLAY
operator: OVERLAY_INDEX_VS_REF
description: Compose-host ratio index of target slot value against the matching reference slot value (matrix or series).
type: reference
applies_to: compose
examples_tags: [overlay, compose, comparison]

Compose-only dual-shape. Overlays decorate the host; no Response.Components.

Use when

Index value of each cell or group of a target Compose request against the same spot in the reference request (target / reference x 100).

Questions it answers:

  • How does this wave’s result per segment compare with last wave’s, scaled to 100?
  • How does each region’s revenue this year compare with last year’s?

Use something else:

  • OVERLAY_DELTA_VS_REF when you want the gap in the value’s own units.

Params

NameTypeDefaultDescription
fieldstring—OUTPUT LABEL of the aggregation to score on every slot (label, else TYPE_field) or an expanded element column <label>[<elem>] (params.expand); absent = each slot’s aggregations[0]; rows key on group columns only; a slot lacking it → PULSE_OVERLAY_FIELD_UNKNOWN.
scalefloat100Set 1 for a raw ratio.

scope required — cell (matrix host) or group (SERIES host). reference / targets required slot labels (one or more targets).

Host shape

COMPOSE dual-shape: MATRIX crosstab OR SERIES host on reference + target. Slots must match on schema, keys and dictionaries. Ratio twin of the reference delta.

Output

MATRIX (cell host) or SERIES (group host) — per-coordinate (target / reference) × scale. Layer summary.baseline = scale. One layer per target, in targets order: one target keeps name; two or more are <name>__<target>, each the one-target layer. Over options.max_panel_targets (16) → PULSE_OVERLAY_PANEL_TARGETS_OVER_CAP.

Contract

  • Weight: not read; a weight in force is skipped.
  • Streaming: streamable.

Gotchas

  • An undefined value (NaN — a mean over a group with no value, an unanswered element) on either side is MISSING, as on the request host: series — the entry keeps its key with NO statistic (absent, not null); matrix — the cell stays absent; no warning, out of summary.count.
  • Zero reference → null + ONE PULSE_OVERLAY_REF_ZERO per coordinate.
  • Missing reference coordinate → PULSE_OVERLAY_REF_ZERO with ref_missing=true.
  • The SERIES form is streamable (manifest buffered: false); the MATRIX form buffers.
  • options.dict_prefix_fast enables the dictionary-prefix probe. A ref arm → PULSE_OVERLAY_REF_INCOMPATIBLE_WITH_SHAPE.
  • Weighted slots → weighted figures (reads the slot payloads).
  • A code cell (AGG_MODE over categorical_* / packed_bool) on either slot → PROCESSING_CONFIG, reason categorical_code; use a count cell.

See