Power BI Measure Cleanup: PBIP, TMDL & How I Refactored 500 Measures Like Real Code episode artwork

EPISODE · Oct 6, 2025 · 16 MIN

Power BI Measure Cleanup: PBIP, TMDL & How I Refactored 500 Measures Like Real Code

from M365.FM - Modern work, security, and productivity with Microsoft 365 · host Mirko Peters - Founder of m365.fm, m365.show and m365con.net

Power BI measure cleanup, PBIP projects, TMDL, semantic model refactoring and bulk editing – this episode is for people searching “clean up Power BI measures”, “PBIP vs PBIX”, “rename measures in bulk”, “Power BI semantic model as code”, “TMDL Power BI” or “version control for Power BI models”. If your field list reads like goblin script and every dashboard change feels like tiptoeing around “TotalFinal_2”, this conversation shows how to turn your model into something you can actually refactor, diff and trust.We start with the real pain: opening a model with 500+ measures named like “M1”, “Total1” and “NewCalc2”, where every choice requires drilling, cross‑checking and second‑guessing what the calculation does. That chaos doesn’t just annoy power users, it slows analysts, multiplies duplicate logic and quietly erodes trust in your numbers because no one is sure which “revenue” is the real source of truth. Manual cleanup by clicking through dialogs is the natural‑1 of model maintenance—slow, brittle and always falling behind incoming requests—so the question becomes: how do you treat this like code instead of a black box?From there, we draw the line between PBIX as a sealed vault and PBIP as a project you can actually read. PBIX keeps everything in one binary container that’s fine for small, local work but terrible for diffing, versioning and bulk edits. PBIP flips that into a project‑ and text‑first layout where reports and models split into structured folders and files, so Git, VS Code and standard dev workflows finally have something meaningful to work with. You’ll hear why that shift—from “mystery file on the desktop” to “project in a repo”—unlocks visibility, revertability and automation, and sets the stage for real model refactoring instead of endless right‑click–rename loops.Then we introduce TMDL (Tabular Model Definition Language) as the cheat code that lays your semantic model out in human‑readable text. Measures, columns and relationships become lines you can search, script and mass‑edit, turning color swaps, naming conventions and documentation passes from multi‑hour chores into a couple of global replaces and a safe commit. We walk through how to export and work with the tabular definition, why you always keep backups and follow Microsoft docs on supported workflows, and how treating your model as text lets you run true “model refactors” instead of spreadsheet‑style surgery.WHAT YOU WILL LEARNWhy messy measure naming quietly kills report usability, trust and team productivity.How PBIX locks your model in a binary box and where that hurts collaboration.How PBIP turns Power BI projects into readable, diff‑friendly folder structures.Why visibility, revertability and automation are the real win of project‑style formats.What TMDL is and how it exposes your semantic model as editable text.How to use text‑based model definitions for bulk renaming, color changes and documentation.Why treating models “as code” enables Git, pull requests and safer refactors.A pragmatic path from goblin‑script measures to a clean, maintainable semantic model.THE CORE INSIGHTThe core insight of this episode is that Power BI measure chaos isn’t a “be more disciplined” problem—it’s a format problem. Once you move from PBIX vaults to PBIP projects and TMDL‑based model definitions, your semantic model becomes a readable, versionable artifact that you can refactor, script and bulk‑edit like real code instead of fighting every change one dialog box at a time.WHO THIS IS FORPower BI developers and modelers drowning in hundreds of legacy measures.Analytics engineers bringing software‑engineering practices into BI.Data teams trying to put Power BI models under proper source control.Architects defining semantic model standards across workspaces and teams.Anyone who has ever thought “there must be a better way” while renaming measures by hand.ABOUT THE HOSTMirko Peters is a Microsoft 365 consultant and host of M365.FM, where he explores modern work, security and productivity with Microsoft 365, Power BI and Fabric. He helps teams turn fragile, click‑only Power BI setups into project‑ and text‑first model workflows where PBIP, TMDL and source control make semantic models easier to understand, refactor and scale.Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-fm-modern-work-security-and-productivity-with-microsoft-365--6704921/support.

Power BI measure cleanup, PBIP projects, TMDL, semantic model refactoring and bulk editing – this episode is for people searching “clean up Power BI measures”, “PBIP vs PBIX”, “rename measures in bulk”, “Power BI semantic model as code”, “TMDL Power BI” or “version control for Power BI models”. If your field list reads like goblin script and every dashboard change feels like tiptoeing around “TotalFinal_2”, this conversation shows how to turn your model into something you can actually refactor, diff and trust.We start with the real pain: opening a model with 500+ measures named like “M1”, “Total1” and “NewCalc2”, where every choice requires drilling, cross‑checking and second‑guessing what the calculation does. That chaos doesn’t just annoy power users, it slows analysts, multiplies duplicate logic and quietly erodes trust in your numbers because no one is sure which “revenue” is the real source of truth. Manual cleanup by clicking through dialogs is the natural‑1 of model maintenance—slow, brittle and always falling behind incoming requests—so the question becomes: how do you treat this like code instead of a black box?From there, we draw the line between PBIX as a sealed vault and PBIP as a project you can actually read. PBIX keeps everything in one binary container that’s fine for small, local work but terrible for diffing, versioning and bulk edits. PBIP flips that into a project‑ and text‑first layout where reports and models split into structured folders and files, so Git, VS Code and standard dev workflows finally have something meaningful to work with. You’ll hear why that shift—from “mystery file on the desktop” to “project in a repo”—unlocks visibility, revertability and automation, and sets the stage for real model refactoring instead of endless right‑click–rename loops.Then we introduce TMDL (Tabular Model Definition Language) as the cheat code that lays your semantic model out in human‑readable text. Measures, columns and relationships become lines you can search, script and mass‑edit, turning color swaps, naming conventions and documentation passes from multi‑hour chores into a couple of global replaces and a safe commit. We walk through how to export and work with the tabular definition, why you always keep backups and follow Microsoft docs on supported workflows, and how treating your model as text lets you run true “model refactors” instead of spreadsheet‑style surgery.WHAT YOU WILL LEARNWhy messy measure naming quietly kills report usability, trust and team productivity.How PBIX locks your model in a binary box and where that hurts collaboration.How PBIP turns Power BI projects into readable, diff‑friendly folder structures.Why visibility, revertability and automation are the real win of project‑style formats.What TMDL is and how it exposes your semantic model as editable text.<a...

NOW PLAYING

Power BI Measure Cleanup: PBIP, TMDL & How I Refactored 500 Measures Like Real Code

0:00 16:47

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Frequently Asked Questions

How long is this episode of M365.FM - Modern work, security, and productivity with Microsoft 365?

This episode is 16 minutes long.

When was this M365.FM - Modern work, security, and productivity with Microsoft 365 episode published?

This episode was published on October 6, 2025.

What is this episode about?

Power BI measure cleanup, PBIP projects, TMDL, semantic model refactoring and bulk editing – this episode is for people searching “clean up Power BI measures”, “PBIP vs PBIX”, “rename measures in bulk”, “Power BI semantic model as code”, “TMDL Power...

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this M365.FM - Modern work, security, and productivity with Microsoft 365 episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!