Sub topic 2
What a workspace is
This chapter explains what a Power BI workspace is, what it contains, and how it differs from the places you already know, such as a folder or your local .pbix file. It 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 a report is separate from the data behind it. Roles, licenses, and the publishing steps come in later chapters. Here you build the model that those chapters rely on.
The workspace as a container
A workspace is a container in the Power BI service that holds content and defines who can work with it. Publishing always targets a workspace. When you choose a destination in Power BI Desktop, you are choosing a workspace.
A workspace can hold these items:
- Reports and paginated reports
- Semantic models (the new name for what Power BI used to call datasets)
- Dashboards
- Dataflows
- Other items, such as notebooks or lakehouses if your tenant uses Microsoft Fabric
A workspace does four jobs at once:
- Storage. It is where published items live.
- Access control. Roles assigned on the workspace decide who can view, edit, or publish.
- Settings. It carries a name, description, contact list, and license mode.
- Operations. Scheduled refresh, lineage, and monitoring are all scoped to the workspace.
Because of this, think of a workspace as a project space. It is not just a folder for tidiness.
My workspace and shared workspaces
Every user has one personal area called My workspace. It is easy to publish to because it is the default destination. It is also a poor choice for anything other than testing.
| Property | My workspace | Shared workspace |
|---|---|---|
| Owner | You alone | A team, through roles |
| Roles | Cannot assign roles to other people | Admin, Member, Contributor, Viewer |
| Collaboration | None | Several people can edit and publish |
| Apps | Cannot publish an app | Can publish an app |
| Continuity | Tied to one person | Survives when a person leaves |
| Typical use | Experiments, personal drafts | Team or production content |
The main risk with My workspace is continuity. If you publish a report there and share it, the report depends on your account. When you leave the company or change roles, the content and its refresh schedule become a problem for someone else.
The usual convention is simple. Use My workspace to test a report. Publish to a shared workspace as soon as another person depends on it.
How a workspace relates to the rest of the tenant
A workspace sits inside a tenant, which is your organization's Power BI environment. It can be assigned to a capacity, which is the pool of compute and storage that serves its content. The workspace's license mode records which kind of capacity or license applies. The next chapters cover licensing in detail. For now you only need to know that the license mode is a property of the workspace, not of the report.
The diagram shows two things that matter for publishing. First, a report and its semantic model live in the same workspace by default. Second, workspaces are independent of each other. A report named "Sales" in one workspace has no connection to a report named "Sales" in another, and they cannot conflict.
Identifying a workspace
Workspaces have a display name and a workspace ID. The name is for people and can be changed. The ID is a GUID, a long unique identifier, that never changes. Scripts and APIs use the ID, so you should know where to find it.
When you open a workspace in the service, the browser address looks like this:
https://app.powerbi.com/groups/11111111-2222-3333-4444-555555555555/listThe part after /groups/ is the workspace ID. The REST API still calls workspaces "groups", which is a leftover from the older terminology. If you see groups in an API path, it means workspace.
Names are not guaranteed to be unique across the tenant. Two workspaces can have the same display name, so lookup by name in a script can return more than one result. Prefer the ID once you have it.
You can look up a workspace by name with the PowerShell module. This is the same check you run before an automated publish:
Install-Module -Name MicrosoftPowerBIMgmt -Scope CurrentUser
Connect-PowerBIServiceAccount
Get-PowerBIWorkspace -Name 'Sales Analytics'The output lists the workspace's Id, Name, and other properties. If nothing comes back, the likely cause is that your account is not a member of that workspace, not that the workspace does not exist. By default this command returns only workspaces you have access to.
To see what a workspace already holds, pass its ID to the report and semantic model commands:
Connect-PowerBIServiceAccount
$ws = Get-PowerBIWorkspace -Name 'Sales Analytics'
Get-PowerBIReport -WorkspaceId $ws.Id
Get-PowerBIDataset -WorkspaceId $ws.IdThe Get-PowerBIDataset command keeps the older "dataset" name, even though the service now says "semantic model". They refer to the same item.
Workspace settings that affect publishing
You can open a workspace's settings from the workspace page. Several settings influence what happens after you publish.
- Name and description. These help others find the right workspace. Choose names that describe the project, such as "Sales Analytics", rather than a person's name.
- License mode. This determines which features are available, such as larger model sizes or more frequent refresh. It also decides who needs which license to view content.
- Contact list. These people receive notifications about problems, including refresh failures. The default is the workspace admins.
- Semantic model storage format. A setting for large semantic models. It matters when your .pbix file produces a model larger than the default limit.
Changing license mode on a workspace that already contains items can have consequences. Moving a workspace away from a capacity that supports a feature your report uses can cause that feature to stop working. Plan the license mode before you publish content that depends on it.
Workspace apps and direct sharing
A workspace is where people build content. It is not always the best place to deliver it. Two other mechanisms exist for audiences who only consume reports:
- Apps. An admin or member packages selected workspace content into an app and publishes it to a chosen audience. Consumers get a stable, curated view, and the team can keep editing the workspace without exposing unfinished changes.
- Direct sharing. You share an individual report by link or by email.
A later chapter covers both. The point for now is that giving someone a workspace role is a way to let them build and publish. It is usually the wrong way to let them only read.
Common errors and misconceptions
These are the mistakes that show up most often when people first publish.
- Publishing to My workspace by accident. Desktop remembers or defaults to My workspace. Check the destination in the publish dialog every time.
- Not seeing the target workspace in Desktop. You may lack a role that allows publishing, or you may be signed in to the wrong account. A Viewer role cannot publish. Roles are the topic of the next chapter.
- Assuming the name identifies the workspace. Two workspaces can share a name. Check the ID before running an automated publish.
- Thinking a workspace is a security boundary for data. A workspace controls access to its items. It does not control access to the underlying data source. A user who can open the report still depends on the credentials and permissions configured on the semantic model and the source.
- Mixing the report and the semantic model. Both items are named after your .pbix file and sit next to each other in the workspace. Deleting one does not delete the other. A report whose semantic model is deleted shows an error when opened.
- Expecting the same name to conflict across workspaces. Name conflicts happen only inside one workspace. Publishing "Sales" to a second workspace creates a separate copy.
Checking your understanding
Before you continue, make sure you can answer these without looking back:
- Which items does a workspace hold, and which of them does a .pbix file produce?
- Why is My workspace unsuitable for shared content?
- Which identifier should a script use, and where do you find it?
Exercise
A colleague says, "I published Sales.pbix to the Finance workspace, so the Sales report in the Sales Analytics workspace has been updated too." Is that correct? Explain, and name one way to confirm which workspace holds a given report.
Show answer
No. Workspaces are independent containers, so publishing to Finance creates or updates items only in Finance. The report in Sales Analytics is untouched, and the same name in two workspaces does not conflict. To confirm, open each workspace in the Power BI service and look at its contents, or run Get-PowerBIReport -WorkspaceId with each workspace's ID. The workspace ID also appears in the browser address after /groups/.
Exercise
You run Get-PowerBIWorkspace -Name 'Sales Analytics' and get no output, although you know the workspace exists. Give the most likely cause and a way to check it.
Show answer
The most likely cause is that your account is not a member of the workspace, because the command returns only workspaces you can access by default. Ask a workspace Admin to check the workspace's access list, or confirm you are signed in with the right account by running Connect-PowerBIServiceAccount again.