Semaphor
Visuals

KPI Cards

Learn how to create and configure KPI cards in Semaphor

Overview

KPI (Key Performance Indicator) cards display important metrics in a clear, focused format. Use them to track single values, compare performance across time periods, or display multiple related metrics together.

Single Metric KPI

Create a single metric KPI by adding one metric without any groupBy fields. This displays a large, prominent value with an optional title and description.

How to create:

  1. Add a metric (e.g., Sum of Sales)
  2. Do not add any groupBy fields
  3. Set a descriptive title

Single Metric KPI

Period Comparison KPI

Period comparison KPIs show how a metric changes against an earlier period or a fixed target. See Metric Comparisons for the complete mental model, precedence rules, and availability behavior.

To set a KPI's comparison:

  1. Add a metric to a KPI visual.
  2. Give the KPI a date to compare over: a Trend By date shown on the card, a date field you set for it, or the dataset's primary date field.
  3. Select a date range with a start and end, from the Date filter or on the card.
  4. In the visual's Comparison section, under Compare with, choose:
    • The Date filter's comparison (the default) to follow whatever a viewer picks on the Date filter,
    • Off,
    • a step back such as Same day last week, or Custom…, or
    • Target.

Once the card has run, the comparison's dates show under Compare with. A window that's still running is compared with the same elapsed part of the earlier period.

For a single-value KPI, you don't need to add the date to Trend By when it already comes from the card or the dataset.

A step back or a target pins the metric: it keeps that comparison whatever a viewer picks on the Date filter. Off shows no comparison at all.

The card displays:

  • The current value, as large as the card allows
  • Under it, the change ("↗ +8.2%") and the comparison line: the comparison's own words, the earlier value, then the dates, such as vs same day last week · 150 · Oct 21 – 27
  • A pin icon on the comparison line when the metric is pinned to its own comparison
  • On hover over the change, the resolved windows and configuration details

A label you set in the Comparison section replaces the comparison's own words.

Comparison Configuration

Compare with chooses the baseline. The rest of the Comparison section controls how the result is presented.

Shown as

OptionFormulaExample
Change %(Current − comparison) ÷ | comparison |Sales increased by 25%
ChangeCurrent − comparisonSales increased by $5,000
BothPercentage and absolute changeSales increased by 25% ($5,000)
RatioCurrent ÷ comparisonCurrent sales are 1.25× the baseline

Decimals

Shown for Change % and Ratio: 0 to 6 decimal places, or Auto (the default). Change uses the metric's own number formatting.

Indicator, direction and colors

  • Indicator - Arrow + badge, Arrow, Badge, or None
  • Higher is - Better (the default), Worse, or Neither. With several comparing metrics, each one gets its own, named for the metric
  • Colors - On or off, with your own Up, Down and No change colors. Up and Down are named good or bad by Higher is

If a metric's direction is set in your semantic model, Higher is shows it fixed.

Label

Leave Label empty to show the comparison's own words, such as "vs same day last week". They follow the Date filter, so the label stays right when a viewer changes the comparison. Type a label to use your own words, such as "vs Budget".

Turn on Different label per direction for separate labels when the value goes up, goes down, or doesn't change.

Below the Value

A KPI can show one more thing under its value and comparison:

  • Trend: turn on the visual's Trend switch to draw a line of the metric over the period the KPI counts, such as each day of the last 7 days or each month of this year.
  • With Trend off (the default), the card shows its drivers when its summary shows on the card; otherwise, for a target comparison, how far the value is toward the target; otherwise nothing.

When a card is too short for everything, a trend you turned on keeps its room: the date range under the title gives way first, then the description. The value and its comparison never give way to the trend.

The trend uses the date the KPI already counts on: its Trend By date, or the dataset's primary date, or the field of the dashboard's date filter. You don't need to add a Trend By. It runs one more query for the card.

The line covers the same dates as the value, so its points add up to it for a total. Under Grain, Automatic (the default) fits the line to that period:

Period the KPI countsAutomatic draws
Up to 2 daysBy hour (by day for a date with no time)
Up to about 2 monthsBy day
Up to 6 monthsBy week
Up to 3 yearsBy month
Up to 12 yearsBy quarter
LongerBy year

Change the dashboard's date or click another chart, and Automatic follows. You can also pick one grain for the card. When the KPI has a Trend By, its grain sets the line's grain. When the period is one period of the grain, such as this month by month, the line shows the 12 periods ending with it, so the value is seen against its history. With no date range, the line shows the last 12 periods. A grain that would draw more than 400 points draws no line.

The first and last points can cover only part of their period: a week the date range starts in the middle of, or this month so far. The line into such a point is dashed, and its tooltip says so ("from Aug 6", "so far"). A period with no data is a gap in the line, not a zero. Hover over the line to see each period and its value. The editor's Date section shows what the line draws, for example "By week · 14 points".

Drivers list as many as fit. +N more opens every driver with the card's summary, and clicking a driver filters the dashboard to it.

Fitting the Card

A KPI reads the same at any size you give it. When the value doesn't fit, it shortens ($22.4M) and shows the full value on hover. As the card gets shorter, the date range under the title goes first, then the description, then the other metrics, then the comparison; the value always stays. What shows below the value needs room under it: a very short card leaves it out, and a wide, short card puts it beside the value.

Multi-Metric KPI (Up to 3 Metrics)

Display multiple related metrics in a single card when you need to show current performance alongside benchmarks or historical values.

How to create:

  1. Add up to 3 metrics (e.g., Current Period, Previous Period, Budget)
  2. Do not add any groupBy fields

Layout:

  • Primary metric displays large at the top
  • Secondary and tertiary metrics display side-by-side below in a 2-column grid
  • Each metric shows its own label
  • Card title typically describes the primary metric

On a KPI with exactly two metrics, the first metric's Compare with offers Other metric · name, which compares the first metric with the second, such as Revenue against Budget. It isn't a period comparison. When several headline measures each need their own period comparison, use separate single-metric KPI cards so each result has an unambiguous value, baseline, and direction.

Multi-Metric KPI

Formatting

Number Formatting

  • Decimal Places - Control precision (0-10 decimal places)
  • Thousands Separator - Automatic based on locale
  • Compact Notation - Display large numbers with K, M, B suffixes

Currency Formatting

  • Currency Symbol - Select from major currencies (USD, EUR, GBP, etc.)
  • Locale - Controls number formatting and symbol position
  • Custom Symbol - Override default currency symbol if needed

When currency or locale is left unset, an eligible KPI can inherit the viewer's Display format preferences. An explicit KPI format remains more specific than the report default.

Percentage Display

  • Multiply by 100 - Automatically convert decimals (0.25 → 25%)
  • Decimal Precision - Control decimal places for percentages

Color Ranges

Apply conditional coloring based on value thresholds:

  1. Define ranges (e.g., 0-50: Red, 50-75: Yellow, 75-100: Green)
  2. Values automatically colored based on their range
  3. Useful for status indicators and performance tracking

Best Practices

Single Metric KPIs:

  • Use for the most important top-line metrics
  • Keep titles clear and specific
  • Add descriptions for context when needed

Period Comparison KPIs:

  • Best for tracking trends over time
  • Choose the baseline that matches your analysis period
  • Leave the comparison label empty so it names the comparison for you

Multi-Metric KPIs:

  • Ideal for showing current value with context (previous, budget, target)
  • Upto to 3 metrics for readability
  • Use clear, concise labels for each metric
  • Primary metric should be the most important value

On this page