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 / Calc shows zero instea...
Power Apps
Answered

Calc shows zero instead of negative number

(0) ShareShare
ReportReport
Posted on by

The formula below works well when ForecastCalc is greater than BudgetCalc... but when budget is greater than forecast, the result is a zero, and not the negative number I would like to show... please show me the error of my ways... Thanks!!

 

 

"$" & Value(Max(Sum(Value(ForecastCalc.Text - BudgetCalc.Text), 0),0), "[$-en-US]###,0")

 

 

Categories:
  • Murphys110 Profile Picture
    on at

    Well, I partially fixed it, as I realized I had MAX set to 0... so I revised to the version below, which works BUT I lose the 000s separator... any ideas?

     

    "$" & Value(Max(Sum(Value(ForecastCalc.Text - BudgetCalc.Text), 0),-10000000), "[$-en-US]###,0")
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Murphys110 ,

     

    Do you need this?

    vjefferni_0-1707442512040.png

    "$" & Text(Max(Value(TextInput2.Text - TextInput3.Text),-10000000), "###.000,000")

     

    best regards,

  • Verified answer
    Murphys110 Profile Picture
    on at

    Actually yes, but not for the end part with the decimal and all the zeros, but your code used TEXT first where mine used VALUE. Using TEXT made mine work! Thanks!!

     

    "$" & Text(Max(Sum(Value(ForecastCalc.Text - BudgetCalc.Text), 0),-10000000), "[$-en-US]###,0")

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard