Workspaces
Point TrailsBI at a folder that holds several reports and semantic models, such as the Git folder that a Power BI or Fabric workspace syncs to, and it builds one page for all of them.
trailsbi "D:\Git\Sales workspace"
The page gets a Workspace view: every data source, semantic model and report of the folder, with lines for what feeds what. A report that is connected live to a model the folder also holds is joined to it, so you see everything a change to the model touches, in every report.
Scope, in the toolbar, picks the models and reports that the other views show. Save Scope saves the choice as a filter file, so you can build just that. A large workspace opens on one model: use Scope to pick others.
Build part of a folder
List what it holds, and pick by name:
trailsbi "D:\Git\Sales workspace" --listtrailsbi "D:\Git\Sales workspace" --model "Sales*"the models whose name starts with Sales
trailsbi "D:\Git\Sales workspace" --model "Sales*" --with-reportsand every report on them
trailsbi "D:\Git\Sales workspace" --report "Margin Check"one report
--list prints the names and builds nothing. A name may be the display name, the path inside the folder (Finance/Monthly) or the folder's name, with or without .Report or .SemanticModel. Case doesn't matter, and * and ? are wildcards. Repeat a flag, or separate names with commas.
A report whose model you left out is still built. The fields it uses are shown as that model's.
Several workspaces
When reports and their models are in different workspaces, give TrailsBI each workspace's folder:
trailsbi "D:\Git\Sales Reports" "E:\Repos\Sales Datasets"trailsbi "D:\Git\*"every folder in there
trailsbi "D:\Git\*" --workspace "Sales Reports" --with-reportsone of them
It builds one page, with the reports joined to their models. A report finds its model by the model's name and by the workspace its connection names, such as powerbi://api.powerbi.com/v1.0/myorg/Sales Datasets, so a Dev and a Prod copy of a model are told apart. --list groups by workspace.
A folder of Git checkouts counts as several workspaces too, one for each checkout.
One page per model
To give each model's owner a page of their own:
trailsbi "D:\Git\Sales Reports" "D:\Git\Sales Datasets" --split -o "D:\Lineage pages"
This writes one page per semantic model, with the reports that use it, wherever those reports are. Reports on a model that the folders don't hold get a page per published model. -o is the folder to write into: without it, TrailsBI makes a new folder where you are.
What doesn't go together
--embed works on one report at a time, so it needs that report's .pbip file or folder, and it doesn't work with --split.
Something wrong or missing? Tell us on GitHub.