Showing results for 
Search instead for 
Did you mean: 
asid72 Frequent Visitor
Frequent Visitor

Refresh Direct Query Report on TV without showing it refresh

We have Power BI Report we want to display on our TV and have it auto refresh periodically. I know current solution is to use the google chrome extension to refresh the browser when using direct query report. I was trying to implement similar method using JavaScript and iframe. The solution works, but I want a want to have the report refresh without having the user see the report refresh. My workaround was to JavaScript load my report and then load a new report hidden in the background. Then, once the hidden report is fully rendered, the script would hide the old report and make the new report visible. This would happen every 15 seconds. Unfortunately, the report is not fully loaded/rendered once the swap happens.  Anyone have any suggestions or advice in fixing this?


Here is the script I have been using:

<iframe id="xIfrWidget0" width="100%" height="100%" style="display:none"></iframe>
<iframe id="xIfrWidget1" width="100%" height="100%" style="display:none"></iframe>

<script type="text/javascript">
var ifrNo = 0;
var ifrHidden;
var ifr;

function swap() 

ifr = document.getElementById('xIfrWidget' + ifrNo);
ifrNo = 1 - ifrNo;
ifrHidden = document.getElementById('xIfrWidget' + ifrNo);

ifr.onload = null;

ifrHidden.onload = function() { = 'none'; = 'block';

// Put in your Power BI Report Link

setInterval(function () 
}, 15000)


The solution is from:

Helpful resources

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 312 members 2,924 guests
Please welcome our newest community members: