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

Data Refresh issues on Screen



I am facing strange issue with one of my Power Apps. I have developed a app which reads data from Power BI. On Visible property of my Main Screen I am loading data from PowerBIIntegration to one Collection by using some Variable flag (This idea was suggested in this forum) If(VarNum<>0, ClearCollect(Itemstoshow,[@PowerBIIntegration].Data));


I am showing this collection on Gallery as items by filtering and sorting the data.


Now the problem is whenever I load the app, the data doesnot show up on main screen at first shot. When I switch between screens (go to other screen and come back) data shows up. I dont have any other code written on visible property of other screen also. Is there anything that I am doing wrong here?

Another thing to mention is if I use PowerBIintegration.Data on Gallery items things works just fine. Only this happen because of loading data to collection.

Super User
Super User

If you don't want to refresh after moving from Screens, put the formula OnStart of the App. Not Onvisible.


The downside is you need to restart the App


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Frequent Visitor

Actually the issue started there..I have put the formula on Onstart of App and it didnt work there ( I had asked this question in the forum separately   

so using variable I moved the formula on OnVisible on my Screen.

The Onvisible ensure you have a refresh data in the App. That is if any changes occurs to the Datasource. So It the most appropriate place in your scenario.

Not sure why not working OnStart.


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,832)