Balance Settlement Analytics Accelerator
Internal balance settlement for BRPs at 15-min resolution: imbalance volumes/costs, volume fees, and production-unit attribution. Ships a dependency-free settlement library + offline tests. Fully generic, currency-neutral Databricks Asset Bundle.
⚙ Try the Live Demo interactive
Enter a settlement period (production, consumption, trades) and compute internal imbalance, imbalance cost and volume fees — the shipped settlement logic.
⚡ Open Imbalance Calculator📋 What's Inside 16 files
- ✓ README.md
- ✓ LICENSE
- ✓ manifest.json
- ✓ databricks.yml
- ✓ resources/jobs.yml
- ✓ src/01_balance_settlement.sql
- ✓ src/02_volume_fees.sql
- ✓ src/03_energy_metering_split.sql
- ✓ lib/settlement.py
- ✓ tests/test_settlement.py
- ✓ conftest.py
- ✓ guide/01_what-you-get.md
- ✓ guide/02_getting-started.md
- ✓ guide/03_architecture.md
- ✓ guide/04_support.md
- ✓ guides/balance-settlement-methodology.md
📁 File Structure 16 files
├── README.md
├── LICENSE
├── manifest.json
├── databricks.yml
├── resources/
│ ├── jobs.yml
├── src/
│ ├── 01_balance_settlement.sql
│ ├── 02_volume_fees.sql
│ ├── 03_energy_metering_split.sql
├── lib/
│ ├── settlement.py
├── tests/
│ ├── test_settlement.py
├── conftest.py
├── guide/
│ ├── 01_what-you-get.md
│ ├── 02_getting-started.md
│ ├── 03_architecture.md
│ ├── 04_support.md
├── guides/
│ ├── balance-settlement-methodology.md
📖 Documentation Preview README excerpt
Balance Settlement Analytics Accelerator
Internal balance settlement for **Balance Responsible Parties (BRPs)** at
15-minute resolution: imbalance volumes and costs, volume fees, and
production-unit attribution with hierarchical drill-down. Replaces
Excel-based settlement with a deploy-ready Databricks Asset Bundle.
Fully generic and **currency-neutral**: configure your own catalog/schema, map
your metering and trade sources, and point at your imbalance-price series.
What it computes
- **Internal balance** per business unit: production + purchases − consumption −
sales, at 15-min resolution.
- **Imbalance cost** at the TSO imbalance price.
- **Volume fees**: imbalance (on absolute imbalance), production, and
consumption fees.
- **Energy split**: metered energy attributed across production units by weight,
with spot-value attribution.
What's inside
- **Databricks Asset Bundle** — daily settlement job (3 dependent SQL tasks).
- **Three parameterized SQL steps** — settlement, volume fees, energy split.
- **A dependency-free settlement library** (`lib/settlement.py`) mirroring the
SQL, with an offline test suite (5 tests).
Quickstart
```bash
pip install pytest && pytest tests/ -v # validate settlement logic offline
databricks bundle deploy -t dev -p <profile>
```
Provide `settlement_entries`, `fee_rates`, `production_unit_shares`, and the
imbalance/spot price series (schemas in `guide/03_architecture.md`).
License
MIT — see `LICENSE`.
... preview truncated, see full README in product download.