Troubleshooting Analyze in Excel
There may be times when using Analyze in Excel that you get an unexpected result, or the feature doesn't work as you expected. This page provides solutions for common issues when using Analyze in Excel.
There's a separate page dedicated to describing and enabling Analyze in Excel.
This article contains the following troubleshooting sections:
- Update Excel libraries for the OLE DB provider
- Determining whether you need to update your Excel libraries
- Connection cannot be made error
- Forbidden error
- No data models
- Token expired error
- Unable to access on-premises Analysis services
- Can't drag anything to the PivotTable Values area (no measures)
Update Excel libraries for the OLE DB provider
To use Analyze in Excel, your computer must have a current AS OLE DB provider installed. This community post is a great source to verify your installation of the OLE DB provider, or to download a recent version.
The Excel libraries need to match your version of Windows in terms of its bit-level. If you have 64-bit Windows installed, you need to install the 64-bit OLE DB provider.
To download the latest Excel libraries, visit Power BI and select the down arrow in the upper right corner of the Power BI service, then select Analyze in Excel updates.
In the dialog that appears, select Download (preview).
Determining whether you need to update your Excel libraries
You can download the most recent version of the Excel OLE DB provider libraries from the links in the previous section. Once you download the appropriate OLD DB provider library and begin installation, checks are performed against your current installed version.
If your Excel OLE DB provider client libraries are up to date, you'll be presented with a dialog that looks like the following:
Alternatively, if the new version you are installing is newer than the version on your computer, the following dialog appears:
If you see the dialog prompting you to upgrade, you should continue with the installation to get the most recent version of the OLE DB provider installed in your computer.
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.
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.
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.
Unable to access on-premises Analysis Services
If you're trying to access a dataset that has connections to on-premises Analysis Services data, you may receive an error message. Analyze in Excel does support connecting to datasets and reports on on-premises Analysis Services with a connection string, as long as your computer is on the same domain as the Analysis Services server, and your account has access to that Analysis Services server.
Can't drag anything to the PivotTable Values area (no measures)
When Analyze in Excel 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 than when you work with a local data source (such as tables in Excel, or when you're working with datasets in Power BI Desktop or the Power BI service), in which case the tabular model is available locally, and you can use implicit measures, which are measures that are generated dynamically and are 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.