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 / Error in Minus Calcula...
Power Apps
Answered

Error in Minus Calculation

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I need to get the sum of the first field minus the second field, but I'm only getting '0'.

Field 1 has - "$" & Edit_PO_Ex_Factory_Price2_Fld.Text

Field 2 has - "(" & Edit_PO_Deposit_Request_Fld.Text & ")"

Total has - Text(Sum(Invoice_Total_Price_Fld.Text) - Text(Invoice_Total_Price_Fld_2.Text))

Phineas_0-1701717253201.png

 

Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    please try the following

     

    Value(Substitute(Edit_PO_Ex_Factory_Price2_Fld.Text, "$", "")) - Value(Substitute(Substitute(Edit_PO_Deposit_Request_Fld.Text, "(", ""), ")", ""))

     

    u need to change the text into a number format using the Value() function

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Phineas Profile Picture
    5,331 Moderator on at

    Yep, that did it.

    It appears as - 242978.03

    Can the formula be updated so that it appears as - $242,978.03

  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    please try this:

     

    Text(Value(Substitute(Edit_PO_Ex_Factory_Price2_Fld.Text, "$", "")) - Value(Substitute(Substitute(Edit_PO_Deposit_Request_Fld.Text, "(", ""), ")", "")), "$#,###.00")

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard