---
title: "ForecastTable"
description: "Projections dashed and labeled everywhere."
canonical: "https://lopifi.com/components/forecast-table"
---

# ForecastTable

> Projections dashed and labeled everywhere.

Source: https://lopifi.com/components/forecast-table
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Metrics & analysis — 
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/metrics-and-analysis

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/forecast-table
```

## Specification

Driver-based projections with scenarios. **Projections render dashed** on every chart and carry a "forecast" label on every figure. Actuals to date and forecast remaining look different within the same period.

The line between what happened and what's believed is drawn in three places.

**Between periods.** Everything after the last closed period is shaded, ruled with a dashed edge, set in the secondary tone, and headed by a column that says `forecast` under its label. Every projected figure sits beneath that word, not just near it.

**Within a period.** A month that has started but not finished is three columns, not one: what has posted, what's expected for the rest, and the landing they sum to. A part-elapsed month shown as one figure next to eight closed ones borrows their authority. That's the difference between "we're at 41.2 with nine days to go" and "we did 58.2," which nobody said and everybody quotes. The landing is **computed from the other two**, never supplied. A caller who provides all three will eventually provide three figures that don't add up, and the grid would render the contradiction without noticing.

**Between scenarios.** The scenario in force is named in the caption and the toolbar. The component won't rank scenarios or style one as the good case. An unlabeled forecast is indistinguishable from a claim, and a ranked one is a recommendation dressed as a forecast.

**API change:** `ForecastRow.polarity` is now required, no default (it previously fell back to `standard`).

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
