How to
KPI Change Badges
When a KPI widget shows an up or down percentage badge, what it compares against, and how "Compare only with selected keys" changes that.
Updated November 28, 2026
A KPI widget can show a small badge next to its main value and each row, such as ↑ 22.9%. This page explains where that percentage comes from and how to control it.
Where a badge comes from
A value gets its badge from the first of these that applies:
- Change Key: a column holding the change itself (for example
sales_change). - Previous Key: a column holding the earlier value (for example
prev_sales). The badge shows the percentage change from it. - Enable Period Delta: compares the widget with the previous period chosen in the dashboard filters.
What happens when none of these is set depends on Compare only with selected keys.
Compare only with selected keys
Find the switch in the widget editor under Visualization → Visibility.
| Switch on | Switch off | |
|---|---|---|
| Change Key and Previous Key both None | No badge | If the query returns more than one row, the value is compared with the same column in the row above it |
| Badge that shows 0.0% | Hidden, with its label | Shown |
New KPI widgets start with the switch on. Widgets created before the switch existed start with it off, so they look exactly as before.
Seeing a badge you didn't set up?
Set up a comparison
- Open the widget in the editor.
- In Visualization, open Main Value, or a row under Rows.
- Under Data Configuration, pick a Previous Key (or Change Key). The dropdown lists the query's columns once you select Run; keys you have already saved show even before that.
- Optionally add a Change Indicator Label, such as
Vs Previous, shown under the badge. - Save the widget.
Your query must return the earlier value as its own column, for example:
SELECT SUM(sales_value) AS sales, SUM(prev_sales_value) AS prev_sales FROM sales_summary
Hide badges
- Visibility → Show Change Indicators turns off Change Key and Previous Key badges for the whole widget.
- Period Delta badges are controlled by Enable Period Delta.
- To remove one value's badge with Compare only with selected keys on, set its Change Key and Previous Key to None.