BudgetVsActual
Polarity-aware, materiality-filtered, versions tracked.
npx shadcn add @lopifi/budget-vs-actualHow it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Actual, budget, variance (absolute and relative) and forecast, by period and by dimension. Respects polarity: a favorable expense variance is under budget. Materiality thresholds are applied and displayed. Reforecast versions are tracked so you can see what was believed when.
The variance is a view, not a column. Actual, Δ and Δ% are the same figures asked three questions, and showing all of them at once turns a budget review into a wall of numbers nobody finishes. The comparison is declared, not positional: the actual column names budget as its base, so hiding the budget column to fit the screen doesn't silently re-point the variance at whatever column ends up to its left.
Two more things keep a budget review from going wrong.
The cut. A favorable total is often two departments canceling out. Engineering 1.6M over and sales 1.7M under reads at the entity line as 0.1M under, favorable, and says nothing about either. A report readable only at the entity level gets believed a quarter longer than it should. Members don't have to sum to the entity, since unallocated corporate spend sits outside them. A vintage that restates an entity budget says nothing about one department's share, so under a cut the member's own budget stands. The component doesn't invent an allocation nobody approved.
The vintage. The original plan and each reforecast are versions of one object, not "budget" plus "reforecasts." Model a reforecast as a different kind of thing and "what did we believe in February" stops having one answer. A vintage states only what it changed. The comparison base is chosen out loud in the toolbar, and the walk between versions sits under the grid, because a reforecast that quietly replaces the plan makes every past month look better than it was called at the time. September can beat the version in force and miss the one the board saw in November. Both readings are true, and a component that picked one silently would pick the flattering one.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Metrics & analysis
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section BudgetVsActual renders in, the calculators behind its figures, and the ledger payloads that feed it.
- BudgetVsActual, runningThe metrics showcase — live, with theme, density, grayscale and reduced-motion switches.
- Margin & markupMargin is profit over price; markup is profit over cost. Solve either way.
- Software spend per employeeTotal software spend turned into a yearly figure, a cost per person and a share of revenue, with what a trim is worth.
- Metrics & analysisMetrics & analysis — specs for 13 React components: MetricDefinition, NonGaapReconciliation, MrrBridge, BudgetVsActual and 9 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Metrics & analysis changes
Your copy doesn’t update itself when we fix something here.
- One email when a Metrics & analysis component needs a migration
- Nothing when nothing changes
Or install it now