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 / How to subtract fornulas
Power Apps
Unanswered

How to subtract fornulas

(0) ShareShare
ReportReport
Posted on by 438

I am trying to find a way to subtract the values of two labels, like this: $45 - $20 = $25.

 

Shopping Cart Total: $45 (Label6_8)

Current Dragon Ticket: $20 (Label6_6)

 

To determine your remaining Dragon Ticket balance, subtract 'Label6_6' from 'Label6_8':

 

$45 - $20 = $25 (Label6_4)

 

Your Dragon Ticket balance is now $25 (Label6_4).

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @dylandavis09,

     

    The issue is that your label is displaying a text value due to the added currency symbol. In case you have that value stored in a number column, you could subtract the values of those columns instead:

    //Text property of your total label
    ColumnLabel6_8 - ColumnLabel6_6

     

    In case that is not possible, we will have to remove the currency symbol from those labels before subtracting:

    //Text property of your total label
    Substitute(Label6_8.Text, "$", "") - Substitute(Label6_6.Text, "$", "")

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • dylandavis09 Profile Picture
    438 on at

    SOLVED! 🙂

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard