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 / Context Variable issue...
Power Apps
Answered

Context Variable issue when trying to build a calculator page

(1) ShareShare
ReportReport
Posted on by 6

I'm trying to build a calculator page and have used the following code in OnSelect on the button:

 

UpdateContext({RunningTotalCalc:RunningTotalCalc+NewNumber})
MissNewbie258_0-1719832241873.png

 

 
However I keep getting the error message below
MissNewbie258_0-1719831858740.png

 

Categories:
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    hey @MissNewbie258 ,

     

    Is "NewNumber" a Text label? if so you need to change your code to: 

    UpdateContext({RunningTotalCalc:RunningTotalCalc+Value(NewNumber.Text)})

     

     

  • MissNewbie258 Profile Picture
    6 on at

    Thank you! It worked

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Glad I could help. 

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard