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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
cuongle
Advocate II
Advocate II

How Direct Query Report works

 

 

I have direct query report on Power BI service and setup the gateway for it, it works perfectly but one thing I am a little confused is the refresh history table for direct query report (Settings-> Datasets)  as below:

 

 

Capture.PNG

 

It refreshs around every 20 minutes. I thought in direct query mode, when you change the data on database it will affect the report immediately. But based on that, even in the direct query mode, it has internal cache doing refresh 20 minutes (don't know this number can be controlled).

 

Please can someone explain in detail how direct query works and why this?

3 REPLIES 3
wonga
Continued Contributor
Continued Contributor

@cuongle

 

I was under the impression that DirectQuery reports don't have scheduled refresh or any kind of refresh at all. What is your underlying data source? The only example I can work off of on my end is Oracle where I don't see anything when going into settings for the dataset.

 

The DirectQuery report should operate as you mentioned, where any interaction with the report should send a query back to your on premises data source to get the latest information and render the results on the report in the Power BI service. Of course you will need to have set up the on premises data gateway in order for this to work.

@wonga I did setup on-premises data gateway for SQL Server, it's odd that you cannot see it with Oracle.

ankitpatira
Community Champion
Community Champion

@cuongle I've noticed that too. As per my understanding with directquery no data is imported in power bi and everytime you interact with visual queries are sent back to data source and data is returned with very less interal caching. I haven't been able to find detailed doc on inner workings of directquery and never really bothered to look into that much detail. You can perhaps contact microsoft and try get more info on that.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors