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 III
Super User III

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.

Super User III
Super User III

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

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,589)