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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
GrantTrevor
Regular Visitor

Access tables from a Direct Query Dataset in a Blank Query

I'm trying to work out if it's possible to access Tables that exist within a Power BI dataset that is using Direct Query from another Query.

 

Steps so far:

* New Power BI Desktop Report

* Add Power BI Dataset from Power BI Service

* Switch to Direct Query storage mode

* Click 'Get Data' -> Blank Query

 

None of the tables from the Dataset appear in the left hand Queries view when Power Query open.

 

I've tried accessing the tables within the Advanced Query editor using a number of approaches all of which result in an error

 

I understand I can't modify the tables in the original Dataset but I would like to create a new Table based on data in the Direct Query Dataset.

 

"DataSource.Error: AnalysisServices: The user "....." does not have permission to call the Discover method."

3 REPLIES 3
amitchandak
Super User
Super User

@GrantTrevor , the Power bi dataset will come as full.  And you can do changes or view script as of now.

 

You can try dataflows, in case you want access tables separately. But dataflow is not a model, just a set of  tables in service.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak  for that response.

 

I'm not trying to alter the tables in the direct query dataset instead what I would like to achieve is to create a new Table that pulls in data from that Direct Query Dataset but have that table only be present in the Report I'm authoring.

 

This would mean the Report uses two DataSets

* one pulled in via Direct Query

* one that is for this Report only and it contains a Table that pulls/transforms data from the other one.

Any updates or lead on this? I came across the very same scenario.

1) I am provided a PBI Dataset that's published.
2) I am trying to find a work-around to bring in the data as IMPORT mode instead of DirectQuery. 

3) I've tried Transformation/MCode and referencing the DirectQuery table but it's not recognizing it.


Any help on this would be greatly appreciated. Thank you.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.