Showing results for 
Search instead for 
Did you mean: 
Post Patron
Post Patron

Global Variables = No Value

Hello @ eka24  @

I followed your instructions to set a global variable on a calculated field:

Set(MyCalFigure,1Sum(GalleryHours.AllItems, HOURS)) in a button on screen 1

l added a label and put the Variable on the Text property: MyCalFigure1.

I did the same for 2 other screens which are records from the Main gallery MyCalFigure2 and MyCalFigure3 but nothing is showing in the global variables collection. Each variable shows "No Value" in the variables collection info.

I would like to add the total of these 3 variables together on the main gallery screen MyCalFigure1+MyCalFigure2+MyCalFigure3 but this doesn't work.

It may be worth noting that the Hours used in the calculation are in 'GalleryHours' not the Main Gallery - does this matter?

What am I doing wrong???

Thanks in advance


Hi @Englishweb ,

You already have a couple of very capable helpers in @eka24 and @v-siky-msft , but I will throw in how I would design this myself - bear in mind there are many different solutions to any problem.

I would make a collection of the filtered result you want and then Patch the sum total of this back to list one.

Again my preference only, but you also can do things in stages with Collections and Variables rather than try to make one huge complex formula to do it.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.


New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,246)