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 / Calculate numbers in P...
Power Apps
Answered

Calculate numbers in Power Apps

(0) ShareShare
ReportReport
Posted on by 165

Hi Folks, needs your help again 🙂 I know is easy for you guys, but I'm really new on this.

 

OK, what i need is that I have a form related to cars and I have 3 fields that i need to know do when my guy use (Initial KM) and (Final KM) what is the Traveled KM?

 

(Initial Kilometers) When one employee take a car for work.

(final kilometers) When he return from work.

(Kilometers traveled) 

 

Example: 

 

Initial KM = 10 Km - Data is Manually

Final KM  = 100 km - Data is Manually

Traveled KM = 90 Km (How I can do with PowerApps that calculation automatic?)

 

Thanks 

Rauseo

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @rauseol ,

    In the Text control for 'Traveled KM' in the Form, make the Default (use your Text Box names)

    Value(YourFinalKMTextBox.Value) - Value(YourInitialKMTextBox.Value)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @rauseol 

    You would do that with two textinput boxes and a label. Name the Textboxes: TextInputInitial and TextInputFinal.  Set the Format property of both textinput boxes to number.  

    Make the Text property of the Label: Value(TextInputFinal.Text)-Value(TextInputInitial.Text)

  • rauseol Profile Picture
    165 on at

    Thank  you so much my friend!!

  • rauseol Profile Picture
    165 on at

    Thanks mate!

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard