Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jdusek92
Advocate III
Advocate III

Analyze in Excel Dataset - How to connect to single dataset TABLE using Power Query?

Hello,

I am able to load a single Power BI dataset table using Analyze in Excel and changing the MDX query for the  Workbook Connection (not Power Query) that is generated by clicking on a value/measure in a Pivot Table connected to the dataset:

 

jdusek92_0-1654560607752.png

after changing the Command text to evaluate 'table' the table refreshes with the full table from the model, which is amazing.

 

I am looking for a way how to load this table using Power Query (in Excel), to do some more data transformation before loading to worksheet.

Can you help me with this? I believe it should be possible to get a single table from dataset using Power Query, when it is possible via legacy connections.

 

maybe via jdusek92_0-1654561452344.png?

 

 

Thank you

Jakub

 

6 REPLIES 6
Vera_33
Resident Rockstar
Resident Rockstar

Hi @jdusek92 

 

Yes, you can, connect in Excel or PBI, AS connector, using the navigation steps will have Cube.Transform, or you can put your DAX query in, not just Evaluate a table, more sophisticated one is fine, too.

Excel connector is the below one

Vera_33_0-1654598716786.png

 

Server is your workspace XLMA endpoint, you need premium capacity or PPU, database is your dataset

 

Source =  AnalysisServices.Database(Server, Database, [Query="EVALUATE 'yourTable'", Implementation="2.0"])

 

Hello @Vera_33 

 

I have only PRO license - but data is loading fine using the legacy workbook OLE DB connection. 

Power Query AnalysisServices.Database returns "The remote server returned an error: (401) Unauthorized."

 

 

 

Hi @jdusek92 ,

 

You can open the Power Query editor in Excel and enter the URL of the PPU/Premium workspace. Then you can import the specific tables of the dataset.

 

vkkfmsft_2-1654763551100.png

 

vkkfmsft_1-1654763515012.png

 

vkkfmsft_0-1654763349231.png

 

You need permissions for the underlying dataset if you want to connect to Power BI datasets in Excel. You could have this permission in either of two ways:

  • You could have the Member role in the workspace containing the dataset.
  • You could have Build permission for the dataset in a workspace, or in an app that contains the dataset. Read more about Build permission for Power BI datasets.

 

And please make sure you have enabled XMLA read-write in the Admin portal.

 

vkkfmsft_3-1654764219425.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Hello @v-kkf-msft  thank you for more info,

I was able to connect to my PPU trial Workspace using AnalysisServices.Database.

 

I am still wondering why for Power Query I need Premium Workspace, but the Analyze in Excel connection does not require a Premium. Both connect to the same data source, I suppose?

 

Also, I prefer to use just the PRO license - is there a way to use any Power Query connector to connect to a PRO dataset/table? Same query as I achieved by editing the legacy OLEDB query in my original post. With this in Power Query I would be able to further transform the table

 

Warm regard,

Jakub

Hi @jdusek92 ,

 

When we use AnalysisServices.Database to connect Power BI workspaces, we are actually getting Tabular Object Model from Power BI XMLA Endpoint. XMLA endpoints are supported only for workspaces hosted on Premium capacity. If you will try to connect to a Pro workspace you will get this exception:

Initial catalog property is required in order to connect to Power BI Pro workspaces.

 

If you want to connect pro workspace datasets in excel, then you need to use the "From Power BI" function.

 

vkkfmsft_0-1655279306131.png

 

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

So it is not possible to recreate a connection to dataset table - that I showed in my original post, using legacy OLE DB - in Power Query? 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.