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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The value 'Text' canno...
Power Apps
Unanswered

The value 'Text' cannot be converted to a number

(1) ShareShare
ReportReport
Posted on by 20
In my powerapp I have a label that does a simple calculation. The label displays the difference between two labels. I use Value() around labels so I am not sure what I am missing. This only shows after I publish the app, I commented out the code , published again and the error is gone. I hope someone can help me.
 
If(IsBlank(BudgetOverview.Text || InvoiceTotal.Text),"",Value(BudgetOverview.Text-InvoiceTotal.Text))
 
I get the following error : The value "Text" cannot be converted into a number.
 
Categories:
I have the same question (0)
  • KennyJ Profile Picture
    168 on at
    Try wrapping the individual controls in the Value function.  I.e Value(BudgetOverview.Text)Value(InvoiceTotal.Text)
  • rencygonzalez Profile Picture
    20 on at
    I did try that as well and still didn't work. 
  • BurtekWu Profile Picture
    12 on at
    Try this approach:
     
    If(IsBlank(BudgetOverview.Text) || IsBlank(InvoiceTotal.Text),"",Value(BudgetOverview.Text)-Value(InvoiceTotal.Text)).
     
     
  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at
    It almost sounds as though the BudgetOverview or InvoiceTotal labels contain the literal value "Text"
     
    It might be worth doing an additional check in the If statement to ensure that both of these are numeric. That might remove the error.
     
    If(
        IsBlank(BudgetOverview.Text) || IsBlank(InvoiceTotal.Text) || 
        !IsNumeric(BudgetOverview.Text) || !IsNumeric(InvoiceTotal.Text),
        "",
        Value(BudgetOverview.Text) - Value(InvoiceTotal.Text)
    )
     
  • rencygonzalez Profile Picture
    20 on at
    This worked thank  you!! @timl
     
    If(
        IsBlank(BudgetOverview.Text) || IsBlank(InvoiceTotal.Text) || 
        !IsNumeric(BudgetOverview.Text) || !IsNumeric(InvoiceTotal.Text),
        "",
        Value(BudgetOverview.Text) - Value(InvoiceTotal.Text)
    )
  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at
    You're welcome @rencygonzalez - glad that worked!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard