Kit extensions

KPI Scorecard

Multiple metrics in one clean tile. A Tableau viz extension in the TableauOps kit, hosted on your own dashboards.

Eric SummersUpdated 2026-09-18markdown

A custom mark type that turns one measure + one date into an interactive metric card, bound to the Marks card (so it travels with the worksheet).

A "KPI" here defaults to a measure tracked over time, not a per-category breakdown. Drag one measure + one date and you get current value, period-over-period delta, and a trend sparkline.

Shared viz-extension techniques (reading encodings, live updates, the configure gear, selection → dashboard actions, responsive/no-scroll degradation) are not repeated here, they live globally in reference/viz-extensions.md. This file covers only what's specific to the KPI Scorecard.

What it is

Encodings (Marks card)

Tile Required Accepts
Measure yes one continuous measure (e.g. SUM(Sales))
Date yes one date, use a continuous date (e.g. MONTH(Order Date))
Color / Detail no one dimension, used as the breakdown for small multiples (e.g. Region)

Trend chart styling

Configure (the ⚙ gear, top-right)

Card title (defaults to the measure name), compare-to baseline, which direction is "good", card theme, trend chart style, line/area color, SMA 1 / SMA 2, small multiples, size, the sparkline toggle, and the dashboard-interaction toggle. All persisted in the workbook.

Run it locally

From the repo root: python scripts/kitserve.py (serves every extension on 8765). It answers on both IPv4 and IPv6 and resolves lib/ to _shared/lib; a plain python -m http.server does neither, which is what makes a local extension load as a blank or errored zone.

In Tableau, on a worksheet's Marks card → mark-type dropdown → Add Extension… → Access Local Extensions → kpi-scorecard/manifest.local.trex. Drag a measure onto Measure and a continuous date onto Date (try Sample - Superstore: SUM(Sales) + MONTH(Order Date) set to continuous).

Reload after .html/.js/.css edits (right-click → Reload). For any .trex change, remove and re-add the extension (Reload won't refresh the embedded manifest).

Get it

KPI Scorecard ships in the Extension Kit ($59). See it live on the demo gallery.