Forum Discussion

AUaero's avatar
AUaero
Responsive Resident
6 years ago
Solved

Analyze in Excel Error

Hi, I've got a Power BI report that is fed by a live connection to an on-premise SSAS tabular model via the enterprise data gateway.  When I click the "Analyze in Excel" button for this report and...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hey AUaero ,

     

    I posted that original thread. Nobody was forthcoming with a useful answer, but I did get to a solution.

     

    Wait for it... it's a bit of a crazy fix.

     

    So, I found that it depends how you create your Analysis Services connection when you first create your Power BI report.

     

    If, when you use the Get Data wizard, you specify the database in the first dialogue screen, then the report works fine when you build it, but once published the Analyze in Excel gets the error you've described.

     

    If however, rather than specify the database, you click through the dialogue screen and select the database, and then the model you wish to connect to, the PBI report seems to understand the metadata needed for the Analyze in Excel capability to work.

     

    So... don't do this:

     

    Do, do this: 

     

     

    Let me know if this helps, or whether this is just some quirk that seems to have helped us.