Codex Sparkline Table

Table

A scorecard table with inline sparklines — trend and value in every row.

Styles

4 stylings shipped — every one is a real render, in your theme.

Codex Sparkline Table — Default
Default
Codex Sparkline Table — Boardroom Mono
Boardroom Mono
Codex Sparkline Table — Emerald Bars
Emerald Bars
Codex Sparkline Table — Midnight Signal
Midnight Signal

Overview

A table that shows the trend, not just the number. Codex Sparkline Table is a multi-column scorecard where each measure column includes an inline sparkline showing the trend over time. You get the current value and the historical pattern in a single row.

Ideal For

  • Team or department scorecards — revenue, deals, satisfaction, and trend per row
  • Product performance tables — multiple KPIs with monthly trend built in
  • Regional comparison — key metrics with trend context for each region
  • Any table where 'is this getting better or worse?' matters as much as the current value

Key Features

  • One sparkline per measure column — trend rendered inline with the value
  • Multiple measures supported — each gets its own column with its own sparkline
  • Text columns for status badges or categorical values per row
  • Sparkline colour, line width, and area fill configurable per measure
  • Sparkline Category for the trend axis — wire to your date or period dimension
  • Column widths auto-adjust — table is scrollable for many rows or columns
  • Hover tooltip showing row category and all measure values
  • Click a row to cross-filter other visuals on the page
Pro Tip

Sort the Sparkline Category by a numeric order measure (e.g. MonthOrder) to ensure the trend renders chronologically.

Help guide

What goes in each field

Field well Put in Required What it does
Row Category Column Yes One table row per value, such as product category or team.
Sparkline Category Column Yes The time axis of each sparkline. Use a date column.
Measures Measure Yes, unless you use Text Columns and Sparkline Value Number columns in the table. Each shows the row's total across every period in the sparkline.
Text Columns Column or measure No Text shown after the number columns. Each row shows the value from its latest period.
Sparkline Value Measure No The measure drawn as the trend line. Leave it empty and the last field in Measures is drawn.

Power BI sends the visual one value per row and period. The table builds each row from those pieces.

Build the measures

The examples assume a Sales table with Amount and Quantity columns, related to a Product table with a Category column and to a marked date table called 'Date', plus a [Revenue Target] measure. Swap in your own names.

Month Start: a real date for the time axis

Add this as a calculated column on the 'Date' table.

Month Start =
DATE ( YEAR ( 'Date'[Date] ), MONTH ( 'Date'[Date] ), 1 )

A date column puts the sparkline points in time order. A text column, such as a month name, keeps the order Power BI sends.

Measures: revenue and units

Revenue =
SUM ( Sales[Amount] )
Units =
SUM ( Sales[Quantity] )

The table adds up each month's value to get the row's figure. Measures that add up, like these, give the right total.

Text Columns: status in the latest month

Revenue Status =
IF ( [Revenue] >= [Revenue Target], "On track", "Behind" )

Sparkline Value: the trend line

Drag Revenue in again. A separate field here lets the trend show a different measure from the table columns.

Put it together

  1. Add the visual. Drag Product[Category] into Row Category and 'Date'[Month Start] into Sparkline Category.
  2. Drag Revenue and Units into Measures.
  3. Drag Revenue Status into Text Columns and Revenue into Sparkline Value.
  4. Add a filter on 'Date' to set the window, such as the last 12 months. The totals and the sparklines both follow it.
  5. In the Format pane, open Sort. Set Sort Column Index and Sort Direction.
  6. Open Table to set Display Units and Decimal Places, and Sparkline to set Sparkline Color, Show Last Point Dot and Line Width.

Tips

  • Sort Column Index counts from 0: 0 is the row category, 1 to N are the Measures in order, N+1 is the trend (by its last point), and the Text Columns follow. Rows with no value sort last.
  • The change pill compares the last point with the average of the earlier points. It shows a dash when there is no earlier point or that average is zero.
  • Ratio measures do not add up. A measure with a percentage format is averaged across the months instead, as a plain average with every month weighted the same. A ratio without a percentage format, or a distinct count, is summed and reads too high.
  • A blank month is a gap in the sparkline, not a zero. Return 0 from the measure when a month with no sales should plot as zero.
From $1.49 / user / month · volume pricing from $29/mo

Billed through Microsoft AppSource


Category Table
Tooltips
Cross-filtering
High Contrast