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

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

Reply
MikhailDom
Frequent Visitor

Cannot read from the table in power query when connected as DirectQuery for Power BI datasets

Hi All,  

 

I have a problem.

 

1) I connected using DirectQuery for Power BI datasets, as described here https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-datasets-azure-analysis-s...

 

2) Clicked make change  and add local model

MikhailDom_0-1642252207908.png

 

After that I can create dashboards using the data.

However, when I try to create a new power query and read the data from one of the existing tables I get the following error.

(I want to write a new query to join and combine several tables)

MikhailDom_1-1642252449032.pngMikhailDom_2-1642252469443.png

Is there any other way to read data from tables connected via  DirectQuery ?

 

 

 

 

1 ACCEPTED SOLUTION

Sounds like you need to request that a Dataflow is created that has the table(s)/queries from Dataset A. That way, you can do downstream transformations, if needed.

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

7 REPLIES 7
AlexisOlson
Super User
Super User

You can't pull tables into Power Query from your data model. The flow of data goes the other way.

Data Sources --> Power Query --> Data Model --> Measures and Visuals

You're still connected to that table though and can use it for building visuals.

 

What is the goal you're trying to achieve by attempting this?

Thank you for the reply.  I'm trying to achieve the following configuration

1) Dataset A    is published to Power BI service and connected to the database via on-premise gateway. It is kind of core dataset.

2) There are several teams  who create their own datasets (Team 1 dataset, Team 2 dataset , etc.) using data from Dataset A .  These teams may want to place additional logic ,like join tables create grouping tables, calculated attributes in power query

It's not a DirectQuery, but it is possible to load tables (or whatever DAX query on Dataset A you like) by connecting to it in the query editor as an Analysis Services Database. Then you can do whatever you'd like with it.

 

See my post here for an example of such a query:
https://community.powerbi.com/t5/Service/How-can-I-set-up-a-scheduled-refresh-for-tables-that-are-DA...

(If you just want a plain table from the model, then the DAX query is simply "EVALUATE TableName".)

Thank you!  I've chosen the solution with data flow, because I can use power query (M language) There.  Your solution is DAX based.  Maybe it would help me in some other case.  Thank you for you help.

Just to be clear, it's a DAX query within an M language query. As I mentioned, you don't necessarily write any more DAX than EVALUATE and a table name.

Sounds like you need to request that a Dataflow is created that has the table(s)/queries from Dataset A. That way, you can do downstream transformations, if needed.

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


That worked for me. Thank you!

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors