Forum Discussion
Power BI Report Server - Refresh data on embedded report
<iframe style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;" frameborder=0 id="iframe" src="http://your-url:8080/Reports/powerbi/your-report:embed=true">
</iframe>
<script>
function refresh()
{
this.frames[0].frames[0].postMessage({kind:'powerbi.reportServerHost.IToolbarActionMessage',button:'refresh'},'*');
}
setInterval(refresh, 120000);
</script>
</html>
Hi Vincentt,
I'm trying to get this to work with the September 2021 release of the PBRS. However, I'm not able to get the report to refresh using the code as you've included in your example. I was very optimistic when I used the new Desktop for the Sept2021 PBRS that includes an automatic page refresh feature. However, it seems to only be valid for the Desktop and not when uploading to the PBRS. Unfortunately! And I do not understand why this feature is included only in the Desktop...
But back to the case: On which versions and configurations did you get this to work?
I'm very intersted learning how to come around this hurdle!
Thanks,
-A
- MontherKH2 years agoFrequent Visitor
Have you figured it out?
- andyba2 years agoRegular Visitor
Hi there,
Unfortunately, not.
We've moved away from using Power BI for such kind of dashboards for now. Some time ago, this refresh ability was added to the Desktop version for Report Server, however it did not work when deploying the dashboard to the server.
I guess this will change with time, and actually, I've not tested the latest versions for an update on this.
- MontherKH2 years agoFrequent Visitor
Could you tell me what other tool you used for this kind of dashboards instead of Power BI?
Thanks.