Sub topic 4
Standard mode versus personal mode
This chapter compares the two on-premises data gateway modes and explains how to choose between them. It assumes you know what a dataset (semantic model), workspace, and scheduled refresh are, and that you have built a Power Query report in Power BI Desktop. It also assumes basic Windows knowledge: services, user accounts, and firewalls.
Why two modes exist
The previous chapter covered when a dataset needs a gateway. This chapter covers which kind to install. Microsoft ships the gateway in two modes, and they solve different problems.
- Standard mode is a shared, managed gateway for an organization. Many users and many datasets can use it. It supports scheduled refresh, DirectQuery, and live connections.
- Personal mode is a single-user gateway. It runs as an application under your own Windows account. It supports scheduled refresh of imported data only.
Both modes are installed from the same download. The installer asks which one you want. The choice shapes everything that follows: who can use the gateway, which storage modes work, and how you manage it.
Comparing the modes
| Capability | Standard mode | Personal mode |
|---|---|---|
| Scheduled refresh (Import) | Yes | Yes |
| DirectQuery | Yes | No |
| Live connection to Analysis Services | Yes | No |
| Users who can use it | Many, through data source permissions | One, the person who installed it |
| Runs as | Windows service | Application in the signed-in user's session |
| Managed in the service | Manage connections and gateways page | Limited, per user |
| Clustering for high availability | Yes | No |
| Other Power Platform services | Power Apps, Power Automate, Azure Logic Apps | Power Automate only |
| Typical use | Production, shared datasets | Prototyping, one-off personal reports |
The most important rows are the storage-mode ones. If your dataset uses DirectQuery or a live connection to SQL Server Analysis Services, personal mode cannot serve it. Only standard mode can.
How each mode runs
Standard mode
Standard mode installs a Windows service. The default service name is PBIEgwService, and it runs under a service account. The default account is NT SERVICE\PBIEgwService. The service starts with the machine and does not need anyone to be signed in. This is why standard mode is the right choice for refreshes that must run at 03:00 on a server.
Administrators manage the gateway in the Power BI service. They add data sources, set credentials, and decide which users can bind datasets to each data source. The gateway can also be a member of a cluster.
Personal mode
Personal mode runs as an application under the account of the user who installed it. It is tied to that user's session. If the user signs out, shuts down the computer, or the computer sleeps, the gateway is not available, and a scheduled refresh that falls in that period fails.
Personal mode has no separate data source management step in the same sense. The credentials you enter in the dataset settings are used directly. The gateway is also not shared. Other users cannot use your personal gateway, and you cannot add it to a cluster.
Where the connection goes
The diagram shows the difference in who talks to the on-premises source.
Choosing a mode
Use these criteria in order.
- Do you need DirectQuery or a live connection? If yes, use standard mode. Personal mode cannot do either.
- Will more than one person or dataset depend on it? If yes, use standard mode. Sharing through data source permissions is a standard-mode feature.
- Must refresh run when nobody is signed in? If yes, use standard mode on a server that stays on.
- Do you need high availability? If yes, use standard mode and build a cluster. Personal mode has no equivalent.
- Is this a personal prototype on a laptop? Personal mode is acceptable. It is quick to set up and needs no administrator.
For production workloads, the answer is almost always standard mode.
Placement and permissions
Install a standard-mode gateway on a machine that is always on, has a reliable network path to the data sources, and is not a laptop. Avoid installing it on the same machine as the data source if that machine is under heavy load, because refresh queries compete with the database for CPU and memory.
Installing a standard gateway requires a Power BI or Microsoft Entra account that can register gateways in your tenant, and local administrator rights on the machine. Personal mode does not require administrator rights in most cases, which is one reason people choose it. This convenience is also a governance risk, as the next section explains.
Governance and common errors
Shadow gateways
Because anyone can install personal mode, data can flow from on-premises sources through machines IT does not manage. Organizations that care about this can restrict personal gateway use in the Power BI admin portal. If your own personal gateway option is missing, an administrator may have turned it off. Ask your administrator before looking for a client-side fix.
One mode per machine setup
You can run a standard gateway and a personal gateway on the same computer. They are separate installations with separate settings. A dataset uses one or the other, depending on which one is bound to it. Do not assume that installing one makes the other unnecessary.
Dataset fails after the owner leaves
A dataset bound to a personal gateway depends on one person's machine and account. If that person leaves, changes laptops, or turns off the computer, scheduled refresh stops. Standard mode avoids this because the data source and the gateway belong to the organization, not to one session.
Wrong mode for the storage mode
Symptoms differ by case:
- A DirectQuery report shows an error saying that the gateway is not configured for it. The dataset was probably published while only a personal gateway was available. Install a standard gateway and map the dataset to it.
- A scheduled refresh fails at the same time every night with an error that the gateway is offline. Check whether the dataset is bound to a personal gateway on a computer that is asleep at that hour.
Mixed sources
A dataset that combines on-premises and cloud sources can refresh through a gateway, but each on-premises source needs to be reachable and have credentials. In standard mode, the gateway data sources page holds these. In personal mode, you enter the credentials in the dataset's settings. Mixing in a source that only a different gateway can reach will fail the refresh.
Switching from personal to standard
If you started with a personal gateway and now need to share the dataset, move to standard mode like this.
- Install a standard-mode gateway on a suitable always-on machine.
- In the Power BI service, add each data source with its credentials. Server and database names must match those in the dataset's Power Query exactly. The next chapters cover this in detail.
- Open the dataset settings, go to the gateway connection section, and select the standard gateway. Map each source to its gateway data source.
- Turn off the personal gateway option for the dataset.
- Run a manual refresh, then check refresh history.
The Power Query code does not change. The same query works under either mode:
let
Source = Sql.Database("sql01.contoso.local", "Sales"),
Orders = Source{[Schema = "dbo", Item = "Orders"]}[Data]
in
OrdersWhat changes is where the service looks for credentials and which machine runs the query.
Summary
Standard mode is the default for any shared or production dataset. It supports every storage mode, runs as a service, supports clusters, and has managed data sources. Personal mode is a lightweight option for one user's imported datasets, but it depends on one person's machine and session. Choose personal mode only when you accept those limits.
Exercise
A team builds a report with DirectQuery against an on-premises SQL Server. The analyst who built it installed a personal-mode gateway on her laptop. Name two reasons this setup will not work well, and say which mode to use instead.
Show answer
First, personal mode does not support DirectQuery, so the report cannot query the server through it. Second, even for imported data, a personal gateway only works while the analyst's laptop is on and she is signed in, and it cannot be shared with the rest of the team. Use a standard-mode gateway on an always-on machine, add the SQL Server as a gateway data source, and map the dataset to it.
Exercise
A nightly refresh at 02:00 fails with "gateway offline" even though the standard gateway server is healthy. What is one mode-related cause you should check?
Show answer
Check whether the dataset is actually bound to a personal gateway on someone's computer that is asleep, signed out, or off at 02:00, rather than to the standard gateway. Rebind the dataset to the standard gateway in the dataset settings.