Power BI as code, in conversation. Prototype a semantic model for your own data and hand engineers an openable PBIP spec; lint and fix TMDL; bring a fleet of client models back in line with one template; keep combo charts on one style. Runs four open-source command-line tools pinned to v1.2.1. Personal project.
The people who know what a business should measure are rarely the people
who build the Power BI model. A marketing or operations team writes its
questions down, the request joins a data-engineering backlog, and weeks
later the first draft comes back shaped around what the engineers guessed.
Meanwhile, Power BI models have become code. PBIP and TMDL save a semantic
model as a folder of plain-text files you can keep in git, review and test.
But the testing layer around those files is thin, and the failures are
small, mechanical and expensive.
A table sits in tables/ but has no ref table line in model.tmdl, so
tools that read the model's table list miss it. Someone copies a table and
its lineage tag comes along with it: that one stops Power BI Desktop opening
the project at all. A field-parameter row is deleted and its comma is left
behind: the model opens, but every visual on that field parameter fails. One
spinout model of the agency template gets a "quick fix" to a DAX measure, and
its revenue no longer matches every other spinout. A measure is renamed in the model,
and the chart still points at the old name.
None of these needs a redesign. Each one can cost an afternoon of clicking
through Desktop, or a number nobody trusts. And few tools check, before you
open Desktop, that a model will load at all: on the Windows bench (with the
v1.1.0 tools) I tested each of these defects on its own in Power BI
Desktop, and only the duplicate lineage tag stopped
the project from opening at all.
swift-pbi is the Power BI colleague in your terminal. Business teams
describe their data and questions in conversation and get a model engineers
can open, with a hand-off package. Practitioners lint and fix TMDL, push a
template change to every spinout model without overwriting what each one is
meant to do differently, and keep every chart on one standardized canvas. Your agent runs four open-source
command-line tools, asks before it edits anything, and quotes every count
from what the tools printed.
Describe it. Build it. Keep every copy in line.
A broken model: 2 errors before, 0 after one fix, each repair a one-line edit. 4 spinout models drifted from their template: 8 findings before, 0 after remediation. Every number is copied from recorded tool output at v1.2.1 on macOS, last re-recorded on 2026-10-22. All models and spinouts are fictional. sh benchmarks/demo/run-all.sh reproduces them.
The part I care most about is restraint. A measure that only one spinout has
is reported as an extension and never touched. A measure retired from the
template is removed from spinouts only after two separate yeses, and a
spinout that keeps it on purpose keeps it. The style findings that need a person to write
a description stay in the report instead of being papered over. The tools
fix what is mechanical and hand everything else back to you.