Measure Killer Measure Killer

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

  1. Scan the model: a .pbix or .pbip open in Power BI Desktop (details), or a model in the Service with Shared model online (details).
  2. Check the rows in red. If other reports, models or Excel files use the model, include them in the scan first (details).
  3. Click Export clean TMDL in the toolbar and pick the clipboard, a TMDL folder or a ZIP file (details).
  4. 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.
  5. 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?

Report an issue with this page

Tell us what is wrong or out of date. No email needed.