End-to-end data lineage, model health and AI readiness for Power BI projects (PBIP). Runs offline.
pip install trailsbi==1.5.2 Copy PIP instructions
Website · Get started · Sample Reports · Demo video
* Power BI is a trademark of Microsoft. TrailsBI is not affiliated with or endorsed by Microsoft.
TrailsBI reads a Power BI project saved as PBIP (TMDL and PBIR files) and builds one self-contained HTML page you can open in any browser. It runs entirely on your machine: no sign-in, no upload, no telemetry.
Watch the demo on YouTube: what breaks if you change a measure, answered on Microsoft's Competitive Marketing Analysis sample.
In Power BI Desktop, save your report as a Power BI project: File > Save as > Power BI project (.pbip).
Install TrailsBI (Python 3.9 or later, no other dependencies):
uv tool install trailsbi Run it on your project:
trailsbi "D:\Reports\Sales\Sales.pbip" This writes TrailsBI Report - Sales - 2026-10-04 16-47.html (with the current date and time) to the current folder. Open it in any browser.
trailsbi [PROJECT ...] [-o OUTPUT] [--open] [--embed] [--list] [-w NAME] [-m NAME] [-r NAME] [--with-reports] [--include FILE] PROJECT a .pbip file, the folder that holds it, a .Report folder, or a folder with several projects for a workspace page; give several folders to read several workspaces together (default: the current folder, so `trailsbi` alone works inside a project) -o, --output where to write the page: a file name, or a folder for the default name (default: "TrailsBI Report - - .html" here) --open open the page in your browser when it is ready --embed show the report inside Power BI: adds a hidden TrailsBI table to the model and a TrailsBI page with the visual to the report (see below). Writes the HTML page only with -o or --open In a workspace folder (several reports and models), without these the whole folder is built: --list list the semantic models and reports in the folder, then stop -w, --workspace build the reports and models of this workspace -m, --model build this semantic model -r, --report build this report --with-reports also build every report on the chosen semantic models --include a JSON file naming what to build: the file the page's Scope menu saves Workspace lineage Point TrailsBI at a folder that holds several reports and semantic models, such as the Git folder a Power BI or Fabric workspace syncs to, and it builds one page for all of them:
trailsbi "D:\Git\Sales workspace" A Workspace map shows every data source, semantic model and report in the folder, in columns from data source to report, with lines for what feeds what. Reports live-connected to a model that the folder also holds are joined to it, so one change to a model shows everything it touches in every report. Scope in the toolbar picks the semantic models and reports that the lineage, the model, the reports and the findings show. Save a scope as JSON and build just that with --include. To build part of a folder, list what it holds and pick by name (wildcards work):
trailsbi "D:\Git\Sales workspace" --list trailsbi "D:\Git\Sales workspace" --model "Sales*" --with-reports trailsbi "D:\Git\Sales workspace" --report "Finance/Monthly" --report "Margin Check" Several workspaces If your Reports and their semantic models lives in different workspaces, give TrailsBI each workspace's folder and it builds them as one page, with the reports joined to their models:
trailsbi "D:\Git\Sales Reports" "E:\Repos\Sales Datasets" trailsbi "D:\Git\*" A report finds its model by the model's name and the workspace its connection names (powerbi://api.powerbi.com/v1.0/myorg/Sales Datasets), so a Dev and a Prod copy of the same model are told apart. --list groups by workspace too, and --workspace NAME builds one workspace (add --with-reports for the reports on its models from the other workspaces). --embed still works on one report at a time.
The TrailsBI visual (preview) shows the same five views inside a Power BI report. It reads them from a hidden TrailsBI table that --embed writes into the semantic model.
It also adds a TrailsBI page to the report, hidden in view mode, with the visual on it and its fields already set. The visual is saved inside the report, so there is nothing to import.
The page needs a report saved in the PBIR format (Power BI Desktop's default for projects since 2025). For an older report, --embed writes the table and says so; add the visual yourself: download TrailsBI.pbiviz from the visual's latest release, import it (Visualizations pane: ... > Import a visual from a file) and add it to a page. In the Data pane, right-click and turn on View hidden, then drag TrailsBI > Chunk onto the visual.
Run --embed again whenever the model or report changes, then refresh. It replaces the table (even if you renamed it) and never adds a second one. It keeps the TrailsBI page as you left it and brings the visual in the report up to date. TrailsBI leaves its own table, page and visual out of the analysis.
The table holds the model's names, DAX and data source addresses, so anyone who can open the report can read them in the visual. Embed it only where that is allowed.
Each release also has trailsbi.pyz, the whole tool in one file: python trailsbi.pyz "D:\Reports\Sales".
When Python comes from the Microsoft Store or the Python install manager, pip puts the trailsbi command in a Scripts folder that is not on your PATH. pip warns about it during the install, and running trailsbi "pbip-project-path" returns 'trailsbi' is not recognized.
git clone https://github.com/trailsbi/trailsbi cd trailsbi python -m pip install -e . pytest "ruff==0.16.10" python -m pytest ruff check . && ruff format --check . The page script is also linted with the rules Microsoft applies to Power BI custom visuals: npm install --no-save eslint@9 eslint-plugin-powerbi-visuals && npx eslint src/trailsbi/web/js.
CONTRIBUTING.md explains how the code is laid out.
Both files in this release have provenance metadata.
power bi pbip pbir tmdl lineage best practice analyzer copilot
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Yanked reason: Placeholder; use 1.0.0 or later




