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 / Calculations within Po...
Power Apps
Unanswered

Calculations within PowerApp

(0) ShareShare
ReportReport
Posted on by 58

Hello,

 

Please can you inform me what is wrong here?

 

TextInput1.Text=Value(TextInput1.Text)+1

 

I'm getting "values being compared have mismatched types, left is text and right is number..."

Categories:
  • dinusc Profile Picture
    Microsoft Employee on at

    Hello Salah,

    Please note the following: 

    1. TextInput control's "Text" property is an "output" property which means you can read it (example: Label1.Text=TextInput1.Text) but you cannot assign values to it.

    2. You cannot set a control with it's own output. Imagine that your formula did work and the initial value is 10. According to your formula, the value should be updated to 11, in which case the formula would be invoked again to update the value to 12 and so on. This is the reason PowerApps does not allow circular references.

    3. The following formulas though are valid:

    TextInpu2.Default=Value(TextInput1.Text)+1

    Label1.Text=Value(TextInput2.Text) + 1

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard