---
title: "ScenarioCompare"
description: "Scenarios side by side, all measured against the base."
canonical: "https://lopifi.com/components/scenario-compare"
---

# ScenarioCompare

> Scenarios side by side, all measured against the base.

Source: https://lopifi.com/components/scenario-compare
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/scenario-compare
```

## Specification

Scenarios in columns, measures down, every column measured against the base. The comparison is
declared, not positional, so it survives the reader reordering or hiding columns.

**It won't rank the scenarios.** No best-case styling, no sorting by outcome. A scenario is a set
of assumptions, and calling the biggest number the good one turns a forecast review into a
negotiation over which column the board sees.

**It won't hide a breach.** A measure with a limit (a covenant floor, a minimum cash balance)
names, in words under the grid, the scenarios that cross it. A downside that breaches a covenant
is the only thing on the page that matters, so it isn't left as a cell someone has to notice.

**API change:** `ScenarioMeasure.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.
