Short answer: in Power BI Desktop, File, Save as, and choose Power BI project (.pbip). The report and the semantic model are saved as folders of plain text files instead of one binary .pbix, so Git can track every change, show you the difference between two versions, and roll one back. Microsoft describes PBIP as source control ready and built for CI/CD; it also works well with a code editor such as VS Code.
A .pbix file saved as "Sales_v7_final.pbix" shows the usual problem: the name says it changed, not what, and nobody can tell which measure moved between v6 and v7.
What does a project look like on disk?
- Sales.pbipthe file you open in Power BI Desktop
- Sales.Report/the report: pages and visuals as text files
- Sales.SemanticModel/the model: tables, measures, relationships as text
- .gitignorekeeps local cache files out of Git
What does Git give you that a .pbix does not?
| Question | With .pbix files | With PBIP in Git |
|---|---|---|
| What changed since last week? | Open both and compare by eye | A diff of the exact lines |
| Who changed the margin measure? | Ask around | The commit history |
| Undo one change, keep the rest | Not possible | Revert that commit |
| Two people editing | One at a time | Branches, then merge |
How does it help with an AI agent?
A coding agent like Claude Code works on text files. With a PBIP folder, it can read your measures, suggest a change in one file, and you see the exact diff before you commit. A binary .pbix gives it nothing to read.
What goes wrong?
- Committing the cache. Keep the
.gitignorePower BI writes; local cache files do not belong in Git. - Editing files while Desktop has them open. Close Desktop or reload after outside edits.
- Data in Git. PBIP stores definitions; keep exported data and credentials out of the repository.
Where can you check this?
- Microsoft Learn: Power BI Desktop projects (PBIP), the folder structure, source control and CI/CD
Where do you start?
Write the project's notes for an agent with a CLAUDE.md for a data repository. For pipelines in Git, see Azure Data Factory with Git and CI/CD.