Skip to content
MyAppBuilder
StableDataVersion 1

KPI

Overview

A single headline number — a count, sum, average, minimum or maximum over records — with a label, icon and caption. The building block of dashboards.

A single key number: count, sum or average of records.

When to use

  • Open jobs this week
  • Revenue this month (Sum of amount)
  • Average rating from feedback
  • Overdue invoices (count with a filter)
  • Largest open quote (Max of amount)

When not to use

  • Several numbers side by side per category: use Summary
  • Trends over time: use a Line or Area chart
  • Progress against a target: use Gauge or Progress Ring

Quick start

  1. Add a KPI and set Label (“Open jobs”)
  2. In Properties → Data choose the entity and add filters (Status equals Open)
  3. Set Calculation (Count) or Sum/Average with a Value field (amount)
  4. Pick a Format (number, currency, percent), an Icon and a Caption
  5. Add On Click → Navigate to the filtered list

Properties

Labeltext (bindable)

Short name of the metric shown above the number.

Default: Total

Example: Revenue this month

Static valuetext (bindable)

Shown when no data source is set. Bind it to any value (e.g. a workflow result or app state) for custom numbers.

Default: 0

Calculationselect

How to reduce the matching records to one number. Count ignores Value field; the others need a numeric Value field.

Options: count, sum, avg, min, max

Default: count

Value fieldfield (number, decimal, currency)

Numeric field used by Sum, Average, Min and Max.

Example: amount

Formatselect

number shows 1,250; currency uses the app's currency (no decimals); percent appends % to the value as stored (store 42, not 0.42).

Options: number, currency, percent

Default: number

Iconicon

Small icon in the corner for quick recognition.

Default: TrendingUp

Captiontext (bindable)

Muted line under the number, e.g. “vs. last month” or the period.

Data binding

Bind Data to an entity query; the calculation runs on the server over all records matching the filters and search (not just one page). Without a data source, Static value is shown. Shows — when the role may not read the entity.

Properties that can use dynamic data: Label, Static value, Caption, data.

Events

On click
Runs when the card is clicked. Typical: Navigate to the page listing the same records so people can drill down.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Responsive behavior

A third of the width by default; stack KPIs in a row Container and let them wrap on phones.

Permissions

Aggregates respect record-level rules: a customer's “Total spent” KPI only counts their own records. If the role has no read access the KPI shows a dash.

Accessibility

  • Label, value and caption are plain text; the value shows a loading placeholder while computing

Examples

Revenue this month

Example
Source: Invoices where status equals paid and paid_at greater than or equal to first day of month (App state → monthStart)
Calculation: Sum · Value field: total · Format: currency
Icon: Banknote · Caption: Paid invoices
On Click: Navigate → Invoices

Common patterns

  • Four KPIs in a row Container at the top of a dashboard
  • Same query as the Table below it so the numbers match
  • A Dropdown of periods bound to App state that the KPI filters use

Limitations

  • One number per KPI; no comparison with a previous period
  • Only query bindings aggregate on the server; API sources need a Summary or chart

Troubleshooting

The KPI shows 0 with Sum

Why: No Value field set, or the field is not numeric

Fix: Choose a Number/Decimal/Currency field as Value field

Shows a dash

Why: No permission to read the entity for the preview role

Fix: Grant read access or preview as a staff role

Related

Was this helpful?