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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JIblasco
Helper I
Helper I

Report screen refreshing automatically

Hello everyone,

 

I'm trying to refresh my report screen automatically without any interaction of the user. Is it possible?. I have scheduled a refreshment that takes place every minute but only works clicking the refresh button.

 

Thanks in advance

1 ACCEPTED SOLUTION
DavisBI
Solution Specialist
Solution Specialist

Hi, @JIblasco 

 

@lbendlin  gives the official solution, that's so great, but it only work on the standard version of PBI, not on-premise PBIRS.

I have a solution, you just need to write a simple javascript code in your browser console and run it, so that the report page can schedule refresh every minute or every second (depending on your need) , you can refer to this article for detail.

 

setInterval(function(){document.getElementById(<input the id of refresh button>).click(); }, 5000);

 

Although it works for both Import and Direct Query data sources, if you use the import mode, you still need to set the schedule refresh for the data, since the page refresh is only for cache data of the page instead of the underlying dataset.

 

Mark this post as solution if this helps, thanks!

View solution in original post

4 REPLIES 4
DavisBI
Solution Specialist
Solution Specialist

Hi, @JIblasco 

 

@lbendlin  gives the official solution, that's so great, but it only work on the standard version of PBI, not on-premise PBIRS.

I have a solution, you just need to write a simple javascript code in your browser console and run it, so that the report page can schedule refresh every minute or every second (depending on your need) , you can refer to this article for detail.

 

setInterval(function(){document.getElementById(<input the id of refresh button>).click(); }, 5000);

 

Although it works for both Import and Direct Query data sources, if you use the import mode, you still need to set the schedule refresh for the data, since the page refresh is only for cache data of the page instead of the underlying dataset.

 

Mark this post as solution if this helps, thanks!

Hi @DavisBI ,

 

Ok, if there is no option to refresh the report, I'll try to refresh the browser.

 

Thanks!!!!!!

lbendlin
Super User
Super User

Automatic page refresh in Power BI Desktop - Power BI | Microsoft Docs

 

Note: Only works for Direct Query data sources.

Hi @lbendlin ,

 

Thank you for your answer. As @DavisBI says, your solution only works with the standard Power BI Desktop version, but I'm using Power BI Dektop for Report Server. The refresh option in this version doesn't exist. 

 

Anyway, thanks again for yor answer.

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors