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-panel-index-vs-ref
kind: operator
category: OVERLAY
operator: OVERLAY_PANEL_INDEX_VS_REF
description: Compose-host multi-reference index — indexes every target slot against a shared reference; emits one layer per target.
type: reference
applies_to: compose
examples_tags: [overlay, compose, comparison]

Compose-only multi-reference. Overlays decorate the host; no Response.Components.

Use when

Index values of several target Compose requests against one shared reference request, one layer per target (target / reference x 100).

Questions it answers:

  • How do the last four waves each compare with the benchmark wave?
  • How does each market compare with the reference market, cell by cell?

Use something else:

  • OVERLAY_INDEX_VS_REF when there is only one target.

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.
scalefloat100Multiplier on target / reference; 1 gives a raw ratio.

scope required — cell (matrix host) or group (SERIES host). reference = shared reference slot. targets — one layer per target. options.max_panel_targets (default 16) caps the target count.

Host shape

COMPOSE dual-shape: MATRIX crosstab OR SERIES on reference and every target. Every (reference, target) pair must match on schema, keys and dictionaries. Sibling to the proportion-z panel.

Output

ONE layer per target, named <name>__<target> (no name: OVERLAY_PANEL_INDEX_VS_REF__<target>), in targets order. Payload shape mirrors the reference slot’s; each layer equals the reference index on that (reference, target) pair.

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.
  • More targets than options.max_panel_targets → PULSE_OVERLAY_PANEL_TARGETS_OVER_CAP.
  • The SERIES form is streamable (manifest buffered: false); the MATRIX form buffers.
  • 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