Fabric App

Larkholt Sales Pulse

An interactive sales report built as a React app for Microsoft Fabric Apps: revenue, pipeline and collections on three pages, where every sentence and highlight is a rule computed from the same filtered data as the charts.

Larkholt Sales Pulse is a sales report for Larkholt, a homeware wholesaler that sells cookware, tableware and linens to retailers through four channels. The company is invented and the data is a seeded fictional dataset, but the report is fully interactive. The video above is a real recording of it: changing the period, cross-filtering by channel and by hour, opening the overdue accounts, quick find, and switching to dark mode.

Use case

The report is the morning check for a commercial lead: how revenue, pipeline and collections are moving, and what needs attention today. Each page answers one question.

  • Overview: what moved. Revenue against target, orders, margin and open pipeline, then the channel mix, the sales funnel, rule-based highlights, recent orders and customer health.
  • Analytics: why it moved. Revenue trend against the previous period, order to cash, when orders arrive, units shipped by weekday, revenue against target by category and fulfilment.
  • Deals: what to act on. Open deals with probability, value and close date, grouped as commit, best case, at risk, won and lost.

Larkholt Sales Pulse overview page with KPI tiles, revenue by channel, sales funnel and highlights

How it's built

Larkholt is a React and TypeScript single-page app built with Vite, made to run as a Fabric app. Fabric Apps, built on the Rayfin SDK, hosts a frontend inside a Fabric workspace with Fabric sign-in and gives it typed access to Fabric data, semantic models included. In production the report's measures would read from the model through a Rayfin connector. This public demo uses a seeded generator in its place and a fixed "today" (30 November 2026), so every visit shows the same numbers.

  • Charts are hand-drawn SVG. d3 does the scales and curve maths only; the funnel, flow band, heatmap, dumbbell, dot matrix, ring, sparkline and line charts are React components drawn to the report's own grammar.
  • Measures are pure functions. Filtering, periods, funnel, aging, customer health and fulfilment live in one selectors module. 46 unit tests cover those formulas and the token sync.
  • Design tokens are the source of truth. Colours, type, radii and spacing are CSS variables with a W3C design-token JSON mirror, and a test fails if the two drift apart. Light and dark mode are the same layout on swapped tokens.

Why an app and not a Power BI report: the interactions below (a cross-filter that keeps the source visual whole, narratives that rewrite themselves, a drawer and quick find) need control over layout and behaviour that the report canvas doesn't give.

Larkholt Sales Pulse overview in dark mode

Storytelling

One highlight per visual. Each chart has one strong blue mark, the thing to look at, and everything else is a stripe, a tint or grey. In the funnel it is Orders, the stage the business is measured on; hovering another stage moves the highlight there.

Numbers first, chrome last. The KPI or hero number is the largest thing on a card, set light rather than bold. Labels are small and grey.

Every sentence is computed. The line under each chart is a rule over the same filtered data, so it changes with the filters. Nothing on the page is predicted or scored by a model.

Revenue by channel and sales funnel, with computed narratives under each chart

Colour by meaning, not direction. A fall in days to pay is green. Orange marks "below target" and the comparison series; vivid orange appears once per page, on the alert dot.

What's different

Highlights are rules

The Highlights card lists what changed against the comparison period: regions and categories that moved more than a threshold, margin shifts, return rate and large accounts. The thresholds sit together in one rules object, so the logic is easy to read and tune, and each highlight is ranked by its money impact.

Highlights card listing rule checks against the comparison period

A cross-filter that keeps its source

Clicking a channel, heatmap cell or category filters the whole page. The visual you clicked keeps all its items and dims the others, so you can see what you picked against the rest and click it again to clear it. The period control shows how many filters are active.

Analytics page filtered to the Monday 10:00 slot from the heatmap

Visuals say what they ignore

Some data can't honour every filter: leads have no product category, deals have no order hour. Instead of quietly showing unfiltered numbers, the visual says so. The Win rate tile is labelled "all categories and hours", order to cash explains why the Quoted stage disappears under a category or hour filter, and the Deals page states that the time filter doesn't apply to it.

Deals page with a narrative stating the time filter does not apply

Charts built for the question

Order to cash is a flow band, nested bands narrowing from quoted to collected with the value at each stage. Revenue against target uses dumbbells: a ring for the target, a dot for actual, blue at or above target and orange below, with the gap in its own column.

Order to cash flow band from quoted to collected

Revenue vs target by category as dumbbells

Health with its formula, receivables with a next step

The customer health score shows its formula on the info icon: 40% repeat rate, 40% invoices paid on time and 20% revenue trend. Next to it, the receivables card splits overdue invoices by age and opens a drawer listing every overdue account, with a link to the account's deals where it has any.

Customer health score and receivables card

Overdue accounts drawer listing accounts, invoices, oldest age and amount