This guide walks you through connecting Power BI Connector for SAP to Microsoft Power BI Desktop, from creating an access token to loading SAP entities into a report and refreshing it in the Power BI service.
You need three things from the connector before you open Power BI: an access token, a data source, and that data source’s OData URL. The sections below create them in that order, then use them in Power BI Desktop.
1. Create an Access Token #
Power BI authenticates to your data source with HTTP Basic authentication: your connector user name plus a personal access token. The token carries the same data permissions you have in the connector, no more and no less, and can be revoked on its own without touching your account.
Step 1: Open Access Tokens #
- Sign in to the connector. You land on the Data Sources page.
- In the left navigation, select Access Tokens. The page lists every token you have created with its label, creation date, expiry and status.

Step 2: Create the token #
- Select Create token.
- Enter a Label that tells you where the token is used, for example Power BI Desktop — laptop. The label is for your own bookkeeping and never leaves the connector.
- Confirm.

Step 3: Copy the token #
The token value is shown exactly once, in a follow-up dialog with eye and copy buttons. Copy it now and keep it somewhere safe until you paste it into Power BI in section 4.

You can have up to 5 active tokens per user; revoke unused ones from the Access Tokens page to free a slot. If your administrator has set a token expiry policy, the Expires on column shows when each token stops working.
2. Create a Data Source #
A data source bundles one or more SAP OData services, a selection of entities and fields, and optional row filters into a single OData endpoint that Power BI can read.
- On Data Sources, select Create.
- Enter a Name. Description and Shared with are optional and can be changed later.
- Select Add Service, type at least two characters of the SAP service name, and pick the service. Repeat to add more services to the same data source.
- Expand the service, then each entity, and tick the fields Power BI should see. Use Filter inside an entity to trim rows on the SAP side.
- Select Save. You return to the Data Sources list.


3. Copy the Data Source URL #
Each data source has its own OData URL. Power BI binds to this URL, not to the data source name, so you can rename the data source later without breaking a report.
- In the Data Sources list, find your data source.
- The URL column shows the endpoint. Select the copy icon next to it to copy the full URL.

The URL stays the same for the life of the data source. Only the rows behind it change as SAP data changes.
4. Connect Power BI Desktop #
Power BI Desktop reads the data source through its built-in OData feed connector. No script is needed.
Step 1: Add an OData feed #
- Open Power BI Desktop and start a Blank report.
- On the Home tab, open the Get data drop-down and select OData feed.

- Paste the data source URL you copied in section 3 into the URL field. Leave the dialog in its Basic mode (a single URL field) and the other options at their defaults.
- Select OK.

Step 2: Enter your credentials #
The first time Power BI Desktop connects to this URL it asks how to authenticate.
- In the left column, select Basic.
- In User name, enter your connector user name: the account you sign in to the connector with, shown in the toolbar.
- In Password, paste the access token from section 1.
- Leave the level at the data source URL and select Connect.

Step 3: Pick the entities #
Power BI fetches the metadata and opens the Navigator with one entry per entity in the data source. Tick the entities you want in the report. The right-hand pane shows a preview of the selected one.

- Select Load to bring the entities into the model as they are.
- Select Transform Data instead if you want to rename columns, change types or combine entities in the Power Query Editor first, then use Close & Apply.
The entities appear as tables in the Data pane, ready for visuals.

To pull fresh data from SAP later, select Refresh on the Home tab. The first load of a large service can take up to a minute while SAP produces the metadata; later refreshes are faster.
5. Publish to the Power BI Service and Refresh Online #
A report published to the Power BI service can refresh on a schedule without anyone signing in. The service keeps its own copy of the credentials, so you enter the user name and token once more after publishing.
Step 1: Create a token for the service #
Create a separate token for the service so you can revoke it independently of the one your computer uses, and label it accordingly, for example Power BI service refresh. If your tenant enforces a token expiry, note the date: scheduled refresh fails the day the token expires.

Step 2: Publish the report #
- In Power BI Desktop, select Publish on the Home tab and choose a workspace.
- In the Power BI service, open the workspace and find the semantic model that was published with the report. Open its menu (···) and select Settings.
Step 3: Enter the credentials in the service #
- Expand Data source credentials and select Edit credentials on the OData entry.
- Set Authentication method to Basic.
- Enter your connector user name and paste the service token as the password.
- Select Sign in. The service stores the credentials and reuses them for every refresh.

Step 4: Schedule the refresh #
On the same settings page, expand Refresh, switch on Scheduled refresh, and pick a frequency, time zone and one or more times. The service runs the first refresh at the next slot; Refresh now in the workspace list runs one immediately.

6. Updating the Token #
When a token is revoked or expires, Power BI returns 401 Unauthorized on the next refresh, and the Power BI service emails the model owner after a few consecutive failures. Create a new token in the connector and put it where Power BI keeps the credentials:
- Power BI Desktop: File → Options and settings → Data source settings, select the data source URL, Edit Permissions → Edit, paste the new token as the password and save. Then Refresh.
- Power BI service: semantic model Settings → Data source credentials → Edit credentials, paste the new token and Sign in. Then refresh the model.
The data source URL never changes. Only the credentials do.
Troubleshooting #
| What you see | What it means | What to do |
|---|---|---|
| 401 Unauthorized | The token was revoked or expired, the user name does not match the account that created the token, or Power BI cached an old token. | Check the token status on Access Tokens. Create a fresh token and update the credentials (section 6). |
| 403 Forbidden on a data source that worked before | Your token is valid, but you no longer have access to this data source: the owner removed you from the sharing list or deleted it. | Ask the owner. See See What’s Been Shared with You. |
| The first load runs for a minute or more | SAP is producing the metadata document for a large service; the first request is slow and later ones are cached. | Wait it out. If it never finishes, check Export History in the connector for an error around that time. |
| The Navigator lists fewer entities than expected | The data source only exposes the entities and fields selected when it was created. | Edit the data source and add the missing entities, then refresh in Power BI. |
| Works in Desktop, 401 in the service | The service has no credentials yet; Desktop credentials are not published with the report. | Enter the user name and token under Data source credentials (section 5). |