web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Performance of Gallery With Local Variables VS Hidden Controls

(0) ShareShare
ReportReport
Posted on by

Wanted to ask a hopefully quick little question. I haven't used the monitor yet to check for myself but thought I should still ask incase it poses other issues than just performance.

 

Having issues with components I moved all of my controls etc. to containers on each screen and would copy and paste edits as need be. When I got the idea to use galleries instead to achieve a much cleaner and dynamic interface. Beforehand I would use variables to determine the visibility of buttons in a horizontal container, but now instead I use a switch function nested in another switch to determine what items are in the gallery which determines how many buttons are there. Example:

 
Switch(managerview,false,
Switch(App.ActiveScreen.Name, "Home",["Home","Calendar","NewRequest","PFP"],
"Calendar", ["Refresh","NewRequest","PFP"],
["PFP"]),
Switch(App.ActiveScreen.Name,
"Home",["Home","Calendar","PFP"],
["PFP"]))
 
This has worked very well so far and makes editing way easier but I wanted to know if this poses any issues with performance.
With this method I will have a total of 4 galleries on 1 screen, 3 being of the nature of the example and the other being from an external data source and is there a reason to avoid using that many galleries on 1 screen? 
 
Thanks!!
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    151,730 Most Valuable Professional on at
    Re: Performance of Gallery With Local Variables VS Hidden Controls

    Hi @atmospheric ,

    If your question is only the last paragraph, then I have many screens with more than 4 galleries and they all work fine.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard