How do I clean up a model stored as .pbip in Git with a clean TMDL export?
Scan the model and click Export clean TMDL: Measure Killer writes a copy of the model definition with every unused column, measure and table removed. Paste it into the TMDL view to preview and apply it, or save it as a TMDL folder, commit it and let your pipeline deploy it.
Last updated · November 27, 2026
Steps
- Scan the model: a
.pbixor.pbipopen in Power BI Desktop (details), or a model in the Service with Shared model online (details). - Check the rows in red. If other reports, models or Excel files use the model, include them in the scan first (details).
- Click Export clean TMDL in the toolbar and pick the clipboard, a TMDL folder or a ZIP file (details).
- To apply it by hand, open the TMDL view in Power BI Desktop or in the Service, paste it into a new tab, preview the changes and apply them.
- In a Git workflow, save it as a TMDL folder, commit it to your repo, review the diff and let your CI/CD pipeline deploy it.
Unused Power Query columns are removed by a step at the end of each query, which you can adjust or delete later (details).
Go deeper
Something wrong or out of date on this page?