cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Functions on inactive screens run each time a variable or field updates.

I want to reference them in those other screens functions, but i dont want 3 screens worth of functions running everytime i choose a different variable value on a different screen, its bogging down app functionality. 

Any tips?

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Anonymous 

PowerApps is Excel!!  It always evaluates formulas you have all the time and on any page (in this case - screen).

Any time you change something that is referenced in a formula, that formula will be re-evaluated.  This is just how it works.

So you have to account for that as you build your app.  Either make your formulas global rather than screen-by-screen, or write your formula to not depend on something that will change elsewhere and not be needed.

There are a lot of "ways" to go about all the above, and it is always very specific to the app and design, so there is no magic "do this - not that" to mention, it is all dependent.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

3 REPLIES 3
RandyHayes
Super User
Super User

@Anonymous 

PowerApps is Excel!!  It always evaluates formulas you have all the time and on any page (in this case - screen).

Any time you change something that is referenced in a formula, that formula will be re-evaluated.  This is just how it works.

So you have to account for that as you build your app.  Either make your formulas global rather than screen-by-screen, or write your formula to not depend on something that will change elsewhere and not be needed.

There are a lot of "ways" to go about all the above, and it is always very specific to the app and design, so there is no magic "do this - not that" to mention, it is all dependent.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

Thanks, that was my tentative conclusion, was just hoping it wasn't the case 😅

RandyHayes
Super User
Super User

@Anonymous 

Yes, getting performance clean in PowerApps is a bit of an art.  It really is about keeping in mind that you are writing formulas just like in Excel and not code (which it is not) that would run only when something makes it run.  Keeping that in mind ALL the time is key to being performance aware.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

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

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 (3,272)