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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / make calculating label...
Power Apps
Answered

make calculating label static !

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a label that calculates a total : 

Text(Sum(LblCurrentValue.Text)-Sum(GalleryNewOrders.AllItems,TxtOrderValueNew.Text),"[$-en-US]€ #,##")

works great and calculates correctly.    However when I have finished entering date I want the final calculation to be patched back to a sharepoint list.

 

My patch command works fine but it patches back the value from the first part of the sum (lblCurrentValue.text) which is a static field (and which is the same figure before any calculations are done)  in other words it doesn't take the final calculated figure?   

 

I've tried adding another label and using its default as the calculatinglabel.text  and patching that back  but that doesn't work either still it takes the old figure..

 

How Can I take my final calculated figure and make it static so that it will patch back correctly?

 

 

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi - have you tried patching that directly? In your patch formula, use that formula for that column instead of referencing the label text?

     

    Could you please provide the code you are currently using for your patch - that will help diagnose,

     

    Thanks,

    Sancho

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks  @iAm_ManCat  I thought of that but don't really want to do that because it's too much overhead in the patch and there is a lot of other stuff going in in the select of the button besides that patch !  The patch itself is easy and as I said works fine with static info such as below 123 it even works if I point it to the value of the label but as I mentioned it takes the current value of the label (before calculation)

    Patch(
     Live,
     LookUp(
     Live,
     LiveStatus = true
     ),
     {RemainingOnPO: 123}

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I got it. I set the on change function of the field that is calculating to a variable, I tried using the variable in the patch that was the same so then I just threw in another label and put the variable as it's default and then referecned that label in the patch !    Just in case anyone else having same issues 🙂

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Thanks for coming back and sharing the answer once you found it!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard