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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
tessahurr
Microsoft Employee
Microsoft Employee

Share your thoughts on DirectQuery for Power BI datasets and Azure Analysis Services (preview)

Hit Reply and let us know what you think of the DirectQuery for Power BI datasets and Azure Analysis Services.  To learn more about this feature, please visit this blog post or our documentation.

 

Here are some areas that we'd like to hear about in particular:

  • Performance
  • Query editor experience--the remote model query doesn't show up in the query editor and only in the data source settings dialog. What are your thoughts?
  • Navigator experience
  • Thoughts around governance and permissions for models that leverage this feature
  • Nesting models, i.e. building a composite model on top of a composite model
  • Automatic page refresh for live connect in composite models

Thanks and we look forward to hearing your feedback!

 

- The Power BI Modeling Team

534 REPLIES 534

Thank you for this answer.
It works fine.

Anonymous
Not applicable

This has been in preview for 2 years now.  @tessahurr: What are we waiting for to make it GA?

Exactly my question! This was first published as a biggest thing in Power BI world at the time but now I hear nothing about this and not even a best guess for GA. It is annoying to know, that this feature is available but only in theory. There were so many bugs when testing this, that I am waiting for GA to continue any work with this.

Five days from the two-year anniversary of "a milestone in business intelligence." 

 

I doubt that the mainstream media will recognize the importance of such innovation. But users that create and consume reports every day will immediately realize the impact of this change.

...

It is here, and it just works.

😫

I would like to chime in by saying I support Microsoft in not making a feature GA until it is truly ready for prime time. There has been bugs yes but to their credit they have not released to GA prematurely and they are throwing fixes at the bugs quite quickly. 

Secondly, this is a very difficult thing to implement technically.

The feature looks to be largely implemented via extensions to the DAX language itself and implements relationships between the local and remote model by placing large lists of data inside DAX statements in dynamic sets.

Finally, if you are an enterprise model designer, it's important to understand how this feature works under the hood to help you decide whether or not you should use it in your particular scenario, taking into account its features and limitations - and other factors such as the size of your model. In some cases, extending a single, base model - is going to provide a far superior solution than composite modelling.

There is a setting DiscourageCompositeModels that can be used to control whether composite modelling is permitted at a dataset level.

https://learn.microsoft.com/en-us/dotnet/api/microsoft.analysisservices.tabular.model.discouragecomp... 

thanks all, we are not quite ready yet for prime time (or making this generally available). Yes, it takes a long time (longer than any of us want) but we are dependent on infrastructure changes that are taking longer than expected before we can declare GA.

Domantas_G
Regular Visitor

On the wesite it states that:
"If you refresh your data sources, and there are errors with conflicting field or table names, Power BI resolves the errors for you"

 

Not sure what is the exact definition of "field", but it doesn't resolve names of measures being idential. In my scenario I connect to multiple tables from different Power BI datasets (Direct query). Then if more than one of the sources gets new measure with the same name and they both hit my "combined model" at the same time, I get an error that "name is already used, and no refresh is working".

 

Feel free to contact me for a demo in case of any questions. 

I found the same when the same fully qualified DAX name for the measure in both models? i.e key measures[measure] is in both models. The refresh error implied it was getting duplicates when it was expecting a single item... I think the workaround I had was to subtlety change the table name.

 

But this does need to be resolved 

correct, this is on our radar and part of our de-duplication efforts.

Anonymous
Not applicable

Hi @jeroenterheerdt,

 

We are developing reports using the Direct Query connection for PBI dataset feature and now we are having the some use cases to them in Power BI Embedded, which is currently not supported as described on the documentation.

 

Is there any planned release to allows this kind of use cases? This is critical for us.

 

Thank you

what issues are you seeing?

Anonymous
Not applicable

This is the issue:

pedroamaro90_1-1674461779790.png

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-datasets-azure-analysis-...

 

Any plans to allow to use Power BI Embedded for reports with DirectQuery to PBI Datasets?

 

Thank you



There are no plans to enable this in the near future - it's a security problem that we still have to resolve. 

than688
Frequent Visitor

Hi, this is a great feature - but after months developing for my org using the feature, I am suddenly getting errors when refreshing which is jeopardising my entire project:

than688_0-1668634574387.png

I have only found one thread on this issue, here: https://community.powerbi.com/t5/Desktop/Refresh-Failed-file-pfoledbreader-cpp-line-836-function/td-...

with users positing that MS have removed the ability to create calculated tables on DQ data, or on using certain calculated table functions on DQ data (e.g. I am creating calculated tables on DQ tables using FILTER (with || OR conditions), CALCULATETABLE, and other DAX. All of this worked fine earlier this year, yet it now fails despite the model not changing.

Please could someone confirm what MS have changed to invalidate the methods I've been using - it's very frustrating and currently my only option is to convert all of these data models to 100% import, which will mean a huge amount of time wasted. Thanks!

 



 

Have you raised a support ticket? It may be just a bug in the release. Documentation hasn't been updated to reflect a change in desktop Using DirectQuery for datasets and Analysis Services (preview) - Power BI | Microsoft Learn

 

I understand it isn't helpful for you right now, however, I specifically don't build production solutions using preview features, or am prepared to 'fix it', due to this disclaimer.

MrNobody_0-1668642058571.png

 

Anonymous
Not applicable

I'm having an error when I'm trying to use a Durect Query for PBI datasets, which I described in this post.

 

In summary, I'm getting an error when I execute a Power Automate Flow that exports a PBI report developed using a Direct Query for PBI Dataset. The flow is successfully executed, but the PDF file generated diplays several error messages for the visuals and it is not possible to see the message. In the post mentioned above it is well described how to reproduce the error and a screenshot of it.

 

Could you please check if there is anything I should change or is it a bug?

 

Thank you

 

thanks for reporting, I replied in the post chat.

bwarner87
Advocate I
Advocate I

Team,

 

In short when will some of the RLS contraints be relaxed, specifically the item in red text below from the documentation write up.  

 

  • RLS rules will be applied on the source on which they're defined, but won't be applied to any other datasets in the model. RLS defined in the report won't be applied to remote sources, and RLS set on remote sources won't be applied to other data sources. Also, you can't define RLS on a table from another source group nor can you define RLS on a local table that has a relationship to another source group.

 

From <https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-datasets-azure-analysis-s...>

 

Here's the design challenge where i'm trying to avoid maintaining 2 different copies of the same file. 

 

I have a "Central Source" PowerBI Dataset that has master employee dataincluding sensitive comp information (fact table)  which has RLS [Ops person for Departartment 1 only sees staff in Department 1] in place on a department reference table (dimension table) . I'm trying to build other reports off that power BI dataset that aren't sensitive or restricted so that all staff can see. Most design options I attempt fail due to RLS restrictions associated with the Direct Query on PowerBI Datasets preview feature.

 

  1. Design Option 1 [FAIL] - When I create a new report "All Staff Reports" and  I direct query to the "Central Source" Power BI dataset the RLS upstream is imposed preventing people with read access to "Central Source" and my new  "All Staff Reports" to seeing the data unless I want to add them to RLS to the master employee data restricting them, which I don't want to do. 

  2. Design Option 2 [FAIL] -  I decided to remove the Department reference table and RLS from the "Central Source" Power BI dataset and add it as a local table to the "All Staff Reports" imposing RLS. I created a relationship to the master empoyee data table in "Central Source" on Department reference table in "All Staff Reports" . The relationship works, the RLS works on the department table. However the RLS won't apply upstream to the master employee data table due to the red text highlight above from MS documentation. 

  3. Design Option 3 [Fail] - create another Power BI Dataset just for the Department Reference data and in a new "All Staff Reports" dataset connect to "Central Source" and "Department Reference" datasets. Then create a relationship between the Master Employee Data in the "Central Source" and Department in "Department Reference". I then try to apply RLS on another power BI dataset that I have a direct query connect to but can NOT because that's part of the documented limitations 😞 

 

At this point i've resolved to having to copy the file into two files and maintain the two but that defeats the purpose of what I think you all were going for tied to the preview feature. Posting here in the hopes you all are losening some of the RLS restrictions. 

 

Thank you for taking the time to review!

hi, thanks for the detailed feedback and explanation. Unfortunately we are not planning improvements in this area in the short term as this is a hard problem to solve. We simply don't have a good design yet for it that satisfies all requirements. That being said, thanks again for the feedback. This is very valuable input that helps us prioritize this. 

Anonymous
Not applicable

Hi, all,

I have one report using data imported from databases. And another team developed a report which gets data from hundreads of excel files, I need the same data and don't want to bother myself to import the data again, so I tried to connect their PBI dataset instead. Which created a "composite model" and I failed with this solution due to the following 2 problems encountered:

(1) I couldn't set refresh schedule for my dataset due to the credential setting error:

快照44.jpg Seems that this is a known issue, but when can it be fixed? (https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-datasets-azure-analysis-s... )

 

(2) When I shared the report to other users, they couldn't see the visuals with data from the direct query dataset.

I have figured out the root cause: When we share report to another user, a "link" will be created and added into the backend dataset. But with composite mode, the link is only added to the "local" dataset, not to the direct query dataset. 

I tired "Live connet" mode and found that PBI can add the link to the source dataset when the report is shared.

So I guess here PBI has a bug. Could you please help to fix it?

 

By the way, seems that PBI currently doesn't support live connect to multiple datasets, is it possible to add this feature? It will be helpful to consolidate reports (just put them together, no data exchange between datasets which we know direct query is needed).

domputer
Frequent Visitor

Lost table relationships when converting Live Connection to Direct Query.

Premium Workspace Dataset from SQL Server Analysis Services database.

Get Data > Power BI Dataset > Table Relationships exist

Make Changes to the Model > Table Relationships disappear except one.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.