Reply
kilala
Resolver I
Resolver I
Partially syndicated - Outbound

Direct Query error: DirectQuery may not be used with this data source

Hi all,

 

I have been using dataverse as my data source. In the homepage, i did some filter condition on a table which is a direct query table from dataverse. 

 

The formula works, and i am able to get my expected result. However, after i publish, in my power bi service, i am getting an error. and after i re-open the desktop version,i received error as below:

DirectQuery error: DirectQuery may not be used with this data source - please consider moving to a supported data source or upgrading the sql server data source to the latest available version.

 

how do i fix this? i thought dataverse would work perfectly with directquery

4 REPLIES 4
avatar user
Anonymous
Not applicable

Syndicated - Outbound

To resolve the issue in PowerBi service follow below steps.
1) Go to Dataset Settings

2) Clik on Edit credentials Under Data Source Credentials and Provide DB credentials.
3) Now refresh the dataset and validate the report.

As per Microsoft for Cloud data source Gateway connection is not needed.

rubayatyasmin
Super User
Super User

Syndicated - Outbound

Hi, @kilala 

 

Ensure that you have checked the settings page of the report's dataset in the Power BI service to see if a gateway configuration or credential editing is necessary.

 

Filter condition on a table in a DQ mode maybe a limitation. 

 

https://community.fabric.microsoft.com/t5/Issues/Direct-Query-not-working-with-Dataverse-and-PBI-dat...

 

remove the transformation and see if that works. 

 

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


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Syndicated - Outbound

Hi, 

i didnt do any transformation directly to the table.

 

I just created some measures to achieve below objective:

 

i have a navigation menu:

1. summary

2. details

3. admin

 

role admin can be navigate by admin only. Hence, following below article,
https://www.linkedin.com/pulse/enable-disable-button-specific-users-powerbi-keith-fernandes/

 


i created some measures to detect what is the user role, and then configure the actions when they click on the navigation menu.

 

it works fine when i test in desktop but when i save and re-open, that error occur. i noticed that i have to wait for some time and then choose Optimize -->Refresh visuals then only it would work. 

 

but the same error will happen when i publish it and i dont think my client is willing to wait just to navigate to page. 

 

i hope any one can chip in any idea on this.or maybe other workaround i can try to achieve the objective apart from article shared?

Syndicated - Outbound

Hey, try to use RLS as an alternative approach. 

 

rubayatyasmin_0-1700647734126.png

refer: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery

 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


avatar user

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!

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.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)