-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the rule on Power BI version control into 2 rules (#8637)
* Created template for new rule about Power BI version control features * Improved the intro and re-formatted image code * Uploaded all supporting images * Aligned an image * Added 2nd good example image to compare file changes that uses red highlighting * Removed section on Power BI Version Control features * Minor * Added related rule
- Loading branch information
Showing
8 changed files
with
71 additions
and
61 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+148 KB
rules/do-you-know-powerbi-version-control-features/enable-pbip-format.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions
57
rules/do-you-know-powerbi-version-control-features/rule.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
type: rule | ||
title: Do you know the Power BI version control features? | ||
uri: do-you-know-powerbi-version-control-features | ||
authors: | ||
- title: Manu Gulati | ||
url: https://ssw.com.au/people/manu-gulati | ||
related: | ||
- do-you-use-version-control-with-power-bi | ||
redirects: [] | ||
created: 2024-06-02T06:06:12.000Z | ||
archivedreason: null | ||
guid: 62ad0741-0247-4bce-ae4d-0d136d838ba6 | ||
--- | ||
|
||
To follow best practices for version control for Power BI reports you must know about the following features: | ||
|
||
* [Power BI Desktop projects (PBIP)](https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-overview) | ||
* [Git integration in Power BI Service via Microsoft Fabric](https://learn.microsoft.com/en-us/fabric/cicd/git-integration/intro-to-git-integration) | ||
* Requires either Fabric capacity or a Power BI Premium per User license | ||
* Currently only integrates with Git repos in Azure DevOps | ||
|
||
The following video provides an overview of these features. | ||
|
||
`youtube: https://www.youtube.com/watch?v=OdkS7DF7ElY` | ||
**Video: Empower every BI professional to do more with Microsoft Fabric | OD06 (Watch from min 5:00 to 13:00)** | ||
|
||
At a high-level you can set up version control as follows. Click on the links to get more detailed instructions on Microsoft Learn. | ||
|
||
1. Convert all your Power BI reports to the PBIP format | ||
* First enable Power BI Projects in Power BI Desktop - File | Option Settings | Options | Preview features | Power BI project (.pbip) save option | ||
* Second "Save As" all your .pbix files as .pbip | ||
|
||
![Figure: Enable PBIP format in Power BI Desktop](enable-pbip-format.png) | ||
|
||
![Figure: Convert all .pbix files to PBIP format](save-as-pbip.png) | ||
|
||
* Converting reports to the PBIP format decomposes it into the following artifacts. | ||
* [A Dataset folder](https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-dataset), which contains files and folders representing a Power BI dataset | ||
* [A Reports folder](https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-report), which contains the report settings, metadata for custom visuals, etc. | ||
|
||
![Figure: PBIP artifacts](ProjectFolders.png) | ||
|
||
3. Commit the PBIP artifacts into a Git repository in an Azure DevOps project. Note, as of this writing Power BI's Git integration only works with Azure DevOps. | ||
|
||
**Note:** Once you convert the report Power BI Desktop will save a copy of the data into a file called [cache.abf](https://learn.microsoft.com/en-us/power-bi/developer/projects/projects-dataset#pbicacheabf) which gets stored in a ".pbi" folder inside the Dataset folder. This file should not be saved in version control. You can create a .gitignore file to prevent Git from committing it to the repository. | ||
|
||
::: img-large | ||
![Figure: cache.abf](PBICache.png) | ||
::: | ||
|
||
::: img-large | ||
![Figure: The .gitignore file](Gitignore.png) | ||
::: | ||
|
||
4. [Connect a workspace in Power BI Service with a branch in the Git repo in Azure DevOps](https://learn.microsoft.com/en-us/fabric/cicd/git-integration/git-get-started?tabs=commit-to-git#connect-a-workspace-to-an-azure-repo) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+287 KB
rules/do-you-use-version-control-with-power-bi/good-example-compare-changes-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters