Extract tabular model from PBIX file
Steps to extract a tabular model (
.bim) TMSL file from an existing Power BI desktop (.pbix) file using pbi-tools.
Download the latest version of pbi-tools.
Extract the downloaded zip file. It includes the
pbi-tools.exeexecutable which can be run directly from a command prompt (no installation required). Put the executable file somewhere convenient.Open a command prompt and
cdto the folder containing your.pbixfileCheck your
pbi-toolsexecutable runs:"C:\Path\To\pbi-tools.exe"(you should see help text output).
Extract the contents of your PBIX into a folder of the same name (without the
.pbixextension)"C:\Path\To\pbi-tools.exe" extract YourReport.pbixGenerate a
.bimfile from the extracted folder:"C:\Path\To\pbi-tools.exe" generate-bim YourReportThe output TMSL file is
YourReport.bim.