Troubleshoot connecting Excel to Power BI data
There may be times when connecting Excel to Power BI data that you get an unexpected result, or the feature doesn't work as you expected. This page provides solutions for common issues when analyzing Power BI data in Excel.
There are separate pages that describe:
This article contains the following troubleshooting sections.
Troubleshooting Power BI data in Excel, in general:
- Forbidden error
- Unable to access on-premises Analysis services
- Can't drag anything to the PivotTable Values area (no measures)
Troubleshoot starting in Power BI with Analyze in Excel, specifically:
Some users have more than one Power BI account, and when Excel attempts to connect to Power BI using existing credentials, it may use credentials that do not have access to the dataset or report you want to access.
When this occurs, you may receive an error titled Forbidden, which means you may be signed into Power BI with credentials that do not have permissions to the dataset. After encountering the forbidden error, when prompted to enter your credentials, use the credentials that have permission to access the dataset you're trying to use.
If you still run into errors, log into Power BI with the account that has permission, and verify that you can view and access the dataset in Power BI that you're attempting to access in Excel.
Unable to access on-premises Analysis Services
If you're trying to access a dataset that has a live connection to SQL Server Analysis Services or Azure Analysis Services data, you may receive an error message. Connecting to Power BI datasets that are built on live connections to Analysis Services is not supported unless the user has read access to the data in Analysis Services in addition to the datasets permissions in Power BI.
Can't drag anything to the PivotTable Values area (no measures)
When your Power BI dataset connects to an external OLAP model (which is how Excel connects to Power BI), the PivotTable requires measures to be defined in the external model, since all calculations are performed on the server. This is different from working with a local data source (such as tables in Excel, or working with datasets in Power BI Desktop or the Power BI service). In those cases, the tabular model is available locally, and you can use implicit measures. Implicit measures are generated dynamically, and not stored in the data model. In these cases, the behavior in Excel is different from the behavior in Power BI Desktop or the Power BI service: there may be columns in the data that can be treated as measures in Power BI, but can't be used as values (measures) in Excel.
To address this issue, you have a few options:
- Create measures in your data model in Power BI Desktop, then publish the data model to the Power BI service and access that published dataset from Excel.
- Create measures in your data model from Excel PowerPivot.
- If you imported data from an Excel workbook that had only tables (and no data model), then you can add the tables to the data model, then follow the steps in option 2, directly above, to create measures in your data model.
Once your measures are defined in the model in the Power BI service, you'll be able to use them in the Values area in Excel PivotTables.
Connection cannot be made error
The primary cause for a connection cannot be made error is that your computer's OLE DB provider client libraries are not current. For information about how to determine the correct update, and for download links, see Update Excel libraries for the OLE DB provider earlier in this article.
No data models
If you encounter an error that states Can't find OLAP cube model, then the dataset you're trying to access has no data model, and therefore cannot be analyzed in Excel.
Token expired error
If you receive a token expired error, it means you haven't recently used the Analyze in Excel feature on the computer you're using. Simply re-enter your credentials, or reopen the file, and the error should go away.
Submit and view feedback for