This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Power BI customers demand enterprise BI solutions that scale to all users across the largest organizations. This depends on enabling team collaboration and automation of deployments across development, test, and production environments to meet the needs of mission-critical BI systems. We are thrilled to announce the public preview of Power BI Desktop Developer Mode, taking advantage of Microsoft’s deep heritage in enterprise BI, and bringing Pro BI developer experiences right into Power BI Desktop.
As the first feature of Developer Mode, Power BI Desktop now lets you save your work as a Power BI Project (PBIP). When saving as a project, report and dataset artifact definitions are saved as individual plain text files in a simple, intuitive folder structure.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Storing dataset and report metadata as text files enables capabilities such as:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Watch the recording of the Empower every BI professional to do more with data session at Microsoft Build for an end-to-end demonstration of Power BI Desktop Developer Mode together with Fabric Git Integration:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
When you save as a project, Power BI Desktop saves report and dataset artifacts as folders, each containing text files that define the artifact. You see the following:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Let's take a closer look at what you see in your project's root folder:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Learn more about Power BI Projects at https://learn.microsoft.com/power-bi/developer/projects/projects-overview.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
The PBIP is optional, only serves as a shortcut to open the report. However, you can always open the report by navigating to the report folder and directly opening the "definition.pbir" file.
When duplicating folders, and if you want to use Fabric Git Integration, don't forget to update the LogicalId at config file and DisplayName at metadata file.
PBIP
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
PBIR
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
For all project metadata files that support external editing, there is a corresponding public JSON Schema. This schema not only describes all the available properties but also enhances the editing experience in code editors like Visual Studio Code. It provides features such as IntelliSense and validation.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
On the documentation page of the dataset and report item folder, you can discover the links to the schemas for each file.
Learn more about the JSON Schemas and how to configure Visual Studio Code at https://github.com/microsoft/powerbi-desktop-samples/tree/main/item-schemas
If you are new to Git, please refer to the following training courses to learn the basics:
Create a local Git repo by opening the Power BI Project folder using VS Code:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Click on the "Source Control" option and select "Initialize Repository":
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Enter a message and do an initial commit:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
From now on, any changes you make in Power BI Desktop changes a file in the folder tracked by your local Git. For example, in Power BI Desktop, when you change a DAX formula for a measure and then save, it triggers a Git diff on the model.bim file. Same thing if you create a new report page, it triggers a Git diff on the report.json file.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
By working with a local Git repo, you reap immediate benefits such as:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
In Azure DevOps, select an existing organization or create a new one and create a new Project within the organization:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Select Repos > Files, and then copy the URL of the remote repo:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
At VS Code > Source Control > Remote, select Add Remote and Publish the branch:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
VS Code takes care of publishing your project into Azure DevOps, where you can see your project files:
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Now you can have multiple developers working on the same Power BI project. All they need to do is be synced with the same Azure Devops Git Repo.
Learn more about Azure DevOps and Power BI Projects at https://learn.microsoft.com/power-bi/developer/projects/projects-azdo.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Once the connection to an Azure DevOps branch is established, Fabric will monitor and track changes between the Workspace and Git. Whenever a difference is detected, users with appropriate permissions can initiate a synchronization process to ensure that both locations contain the same content. This ensures consistency and harmony between the Workspace and Git, allowing for smooth collaboration and development.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
By integrating Azure DevOps and Microsoft Fabric, developers gain the ability to seamlessly sync their Power BI workspaces with Git repositories, ensuring consistency and facilitating continuous integration workflows. This integration allows you to commence your report development in Power BI Desktop, seamlessly transition to the Service, and return to Power BI Desktop, where every modification is securely backed up and versioned by Git.
Deep_dive_into_Power_BI_Desktop_Developer_Mode_Preview
Learn more about Microsoft Fabric Git Integration at https://learn.microsoft.com/fabric/cicd/git-integration/intro-to-git-integration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.