Reputation: 75306
I have direct query report on Power BI service and setup on premises data gateway for it in order to access SQL Server database, it works perfectly but one thing I am a little confused is the refresh history table for direct query report (Settings-> Datasets) as below:
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?
Also, is the direct query on Power BI Embedded works in the same way?
Upvotes: 1
Views: 1077
Reputation: 1
The DirectQuery scheduled cache refresh is not for reports but "enables extremely quick loading of dashboards".
Upvotes: 0
Reputation: 1
For performance it will cache the data.
David Iseminger from Microsoft published an article on Wednesday, August 10, 2016.
When the data necessary to service the request has recently been requested, Power BI Desktop uses recent data to reduce the time required to display the visualization. Selecting Refresh from the Home ribbon will ensure all visualizations are refreshed with current data.
Refresh from the ribbon and see what is in the refresh log.
Upvotes: 0
Reputation: 4948
Direct Query in Power BI Embedded works the same way. However direct query does not mean realtime. If data is updated after your report loads the report will NOT automatically refresh with the data. If you reload the report then you should see the new data as it is directly querying your underlying datasource.
Upvotes: 2