Sub topic 5
Publishing from Power BI Desktop step by step
This chapter assumes you can build a simple report in Power BI Desktop and sign in to the Power BI service with a work or school account. It also assumes you know that a report and its data are separate things. Workspace roles and licensing are covered in earlier chapters. Here you will use them to publish a report.
Before you publish
Check three things first.
- You are signed in to Desktop with the same account you use in the service.
- Your role in the target workspace is Admin, Member, or Contributor. Viewers cannot publish.
- The workspace is backed by a license mode that allows you to publish to it. For example, a Pro workspace needs you to have a Pro or Premium Per User license.
Save the .pbix file locally before you start. Desktop asks you to save if you have unsaved changes, and the published copy reflects the saved file.
The publish flow
Step by step
- Open the .pbix file in Power BI Desktop and select File > Save.
- On the Home tab, select Publish.
- If prompted, sign in. Use the account that has a role in the target workspace.
- In the Publish to Power BI dialog, pick the destination workspace. Select My workspace only for personal testing. Other people cannot see it unless you share items individually.
- Select Select. Desktop uploads the file and shows progress.
- When the dialog reports success, select the link Open 'filename.pbix' in Power BI. The report opens in your browser.
If a report with the same name already exists in the workspace, Desktop asks whether to replace it. Replacing overwrites the report and its semantic model with the contents of your file. The next chapter covers this in detail.
What gets uploaded
Publishing uploads two things from the .pbix file: the report pages and visuals, and the semantic model (the tables, relationships, measures, and imported data). In the workspace you will see both as separate items with the same name.
If your report uses DirectQuery or a live connection, the data itself is not uploaded. Only the model definition and report layout are sent, and the service queries the source when someone opens the report.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| The workspace is missing from the list | Your role is Viewer, or you are signed in with a different account | Ask a workspace Admin for the Contributor role, or sign out and back in |
| "You need a Power BI Pro license" style message | The target workspace requires a Pro or Premium Per User license | Get the license or choose a workspace on suitable capacity |
| Upload fails on a large file | The file exceeds the size limit for your capacity | Reduce the data, or use a capacity with a larger limit |
| Report opens but visuals show errors | The service cannot reach the data source with stored credentials | Set credentials on the semantic model, as covered in a later chapter |
Quick check after publishing
Open the workspace and confirm that both the report and the semantic model are listed. Open the report, switch between pages, and check that a slicer filters the visuals. A fuller verification routine appears in a later chapter.
Exercise
You are a Viewer in the "Sales Analytics" workspace and the Publish dialog does not list it. Name one way to fix this and say why publishing to My workspace is not a substitute for a team report.
Show answer
Ask a workspace Admin to raise your role to Contributor (or Member or Admin). My workspace is private to you, so teammates cannot see the report unless you share each item individually, and it is not managed by team roles.
Exercise
A report that uses imported data opens in the service but every visual shows an error. Desktop showed the data correctly. What is the most likely cause?
Show answer
The semantic model has no valid data source credentials in the service, or it needs a gateway to reach an on-premises source. Desktop used your local session, but the service needs its own configured credentials.