Skip to Content
BlocksMetrics

KPI

KPIs with the change on the last period written as a sentence, how each number was computed, progress to a target, and bar, line and area charts.

A KPI puts one headline number first, with what it means under it: the change, the target or the shape of the week behind it. Each one draws its own shadcn Card.

Headline

A value with its change and what it's compared with.

npx shadcn add @dashboardblocks/kpi-01

Total revenue

$45,231

Up 20.1% vs last month

Row

A row of headline KPIs, each in its own card, for the top of a dashboard.

npx shadcn add @dashboardblocks/kpi-05

Total revenue

$45,231

Up 20.1% vs last month

New customers

1,284

Down 8.4% vs last month

Active accounts

4,512

Up 7.9% vs last month

Average order

$126

Up 6.8% vs last month

Compact

A value with its change written beside the label, for a tight grid of KPIs.

npx shadcn add @dashboardblocks/kpi-02

Active users

Up 12.5% vs last week

2,420

Previous Value

A rate beside its previous value, with the change in percentage points.

npx shadcn add @dashboardblocks/kpi-03

Conversion rate

3.24%
This month
3.46%
last month

Down 0.2 pts vs last month

Provenance

A value with a button that says how it was computed: what's counted, the dates, the filters, the query and a link to the rows.

npx shadcn add @dashboardblocks/kpi-04

Monthly recurring revenue

$48,200

Up 6.9% vs August

Pro · Europe

Target Pace

Progress to a monthly target, with where the current pace ends the month and where an even pace would be today.

npx shadcn add @dashboardblocks/progress-kpi-01

Revenue

$87,500

Up 7.5% vs last month

55% of $160,000Day 18 of 30

On pace for $145,833, $14,167 short of target. The hatched bar is the projection, the line an even pace.

Status Breakdown

The share of work done, as one bar split by status, with a count for each.

npx shadcn add @dashboardblocks/progress-kpi-02

Sprint progress

59%

51 of 87 tasks done

  • Done5159%
  • In progress2630%
  • Not started1011%

Goal Ring

A count against a goal as a ring, with how many are left and how many a day that takes.

npx shadcn add @dashboardblocks/progress-kpi-03

Monthly goal

7,500

of 10,000 sales

2,500 to go in 9 days, about 278 a day.

KPI Charts, Pro

Four numbers in a row, each with the small chart that explains it: what it's made of, a goal, a trend or a runway.

Pro

Outstanding

$48,250

Down 8.2% vs last month

7 invoices, 2 of them late

Client work this week

74%

Up 4 pts vs last week

196 of 264 hours on client work

Open pipeline

$312,000

Up 11.4% vs Oct

13 deals, $129,600 weighted by stage

Cash in bank

$214,380

Up 4.1% vs last month

5.2 months of running costs

Bar Chart

The week's total with a bar for each day and the change on the week before.

npx shadcn add @dashboardblocks/bar-chart-kpi-01

Revenue this week

$32,300

Up 7.5% vs last week

Fri was the best day, at $6,100.

Actual vs Goal

Each day's value with its goal marked on the bar, and the days that met it solid.

npx shadcn add @dashboardblocks/bar-chart-kpi-02

Revenue vs goal

$32,300

96% of goal of $33,800

Met the goal on 2 of 7 days. Solid bars met it; the line on each bar is that day's goal.

Line Chart

This week as a filled area over last week as a dashed line, with the days it fell behind written underneath.

npx shadcn add @dashboardblocks/line-chart-kpi-01

Visitors

46.2K

Up 7.3% vs last week

This week was ahead oflast week on 6 of 7 days, behind on Wed.

Area Chart

Gross profit with its margin, profit drawn inside revenue by day, and the day with the best margin.

npx shadcn add @dashboardblocks/area-chart-kpi-01

Gross profit

$10,300

Up 7.9% vs last week

28.4% margin on $36,300 revenue, best on Tue at 29.4%. The light area is revenue, the dark one profit.

Background Chart

A large total with an area chart along the bottom, for the hero number at the top of a dashboard.

npx shadcn add @dashboardblocks/area-chart-kpi-02

Transaction volume

$128,400

Up 18.4% vs last week

Busiest on Sun, at $24,000.

On this page