Sub topic 16
Saving your work and publishing
This chapter assumes you have Power BI Desktop installed, have loaded data, and have built at least one visual. It covers saving a .pbix file and where publishing fits. You need no new tools. A Power BI account is only required for the publishing step.
What a .pbix file contains
When you choose File > Save, Power BI Desktop writes a single .pbix file. That file holds everything you created in the three views:
- The report pages and visuals from Report view.
- The loaded data and column settings you inspected in Table view.
- The relationships and measures from Model view.
- The Power Query steps that shaped the data.
Because the file contains a copy of the loaded data, it can be large. The data in it is a snapshot from your last refresh. It does not update by itself.
Saving a report
- Select File > Save, or press Ctrl+S.
- Choose a folder and a file name, for example
SalesReport.pbix. - Select Save.
Save early, before you build many visuals. Power BI Desktop can recover unsaved work after a crash, but you should not rely on that.
Save versus publish
Saving and publishing do different jobs.
| Action | What it does | Where the result lives |
|---|---|---|
| Save | Writes a `.pbix` file | Your computer |
| Publish | Sends the report and its model to the Power BI service | A workspace online |
Saving does not share anything. Publishing makes the report available to people with access to the workspace.
Publishing to the Power BI service
The Power BI service is the online half of Power BI. Desktop is where you author. The service is where you share and view.
- Save the file first. Desktop asks you to save before it publishes.
- On the Home tab, select Publish.
- Sign in with a work or school account if asked.
- Pick a destination workspace, such as My workspace.
- Select Select, then wait for the confirmation message.
A link in the confirmation opens the report in your browser.
Common errors
- Publishing a stale snapshot. The service shows the data as it was when you last refreshed in Desktop. Refresh in Desktop before you publish.
- Publishing over a report with the same name. Desktop asks whether to replace it. Choosing replace overwrites the version in the workspace, so check the name first.
- Expecting edits to sync back. Changes you make in the browser do not update your local
.pbix. Keep the Desktop file as the source of truth for the model. - No publish option available. Publishing needs a signed-in account that can use the Power BI service. A personal email address is often not accepted.
Exercise
You changed a relationship's cross-filter direction in Model view, then used Publish. A colleague says the online report still looks unchanged. What are two things you should check?
Show answer
First, confirm you saved and published after making the change, and that you published to the workspace your colleague is viewing. Second, confirm that you chose to replace the existing report with the same name instead of publishing a copy, and ask your colleague to reload the page.
Exercise
Why does a .pbix file need care when it contains confidential data, even if you never publish it?
Show answer
The file includes a copy of the loaded data, so anyone who can open the file can see that data.