Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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).

 

 

 

  • dylandavis09 Profile Picture
    438 on at
    Re: How to subtract fornulas

    SOLVED! 🙂

  • Verified answer
    LaurensM Profile Picture
    12,510 Super User 2025 Season 1 on at
    Re: How to subtract fornulas

    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!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard