cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KJH1138
Frequent Visitor

Formula Calculation within Reusable Components Question

I have created a reusable component (gallery) that has number of elements that can be turned off or on depending upon their specific use case.  These elements contain formulas along the lines of CountRows(DataSource,ObjectParent=ThisItem.Object).  Currently when I 'turn off' an element I am simply setting the elements 'Visible' attribute to false via a custom input variable.

 

My question:  Does the element recalculate even if 'Visible' is set to 'false'? If yes, is there a more elegant way to stop the recalculation than simply adding a conditional to the formula itself (will still recalculate but can bypass the processing intensive portion)?

1 ACCEPTED SOLUTION

Accepted Solutions
ShantanuP
Power Apps
Power Apps

The formula will be recalculated. You need to use a conditional in the formula.

View solution in original post

1 REPLY 1
ShantanuP
Power Apps
Power Apps

The formula will be recalculated. You need to use a conditional in the formula.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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