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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Resolver I
Resolver I

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

New Member

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.

Super User
Super User

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.


remove the transformation and see if that works.

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

Proud to be a Super User!


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,


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?

Hey, try to use RLS as an alternative approach. 





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

Proud to be a Super User!

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.