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 / How to calculate total...
Power Apps
Answered

How to calculate total price?

(0) ShareShare
ReportReport
Posted on by 383

I have a gallery that is a shopping cart of items selected with quantity and unit price for each item. The quantity and unit price for each item is saved (patched) to the SharePoint list EquipmentOrders. The total price will be saved (patched) to SharePoint list Orders. I am not using collections. I am just using patch functions. 

 

What's the best way to calculate the total price? I need to set a calculated total price in a field named Total Price on the screen. Do I use the LookUp function to calculate it from the saved data in Equipment Orders from the Unit Price and Quantity based on a particular Order ID? Do I reference the gallery items? How do I select all the items per order to do the calculation? Do I need to set up a temporary collection?

 

Many thanks!

Categories:
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    I am assuming you have a gallery that displays the items and their quantities. If that is true then add a label and put this as its text property:

    Text(Sum(GalleryName.AllItems, PriceColumnName*QTYColumnName), "$#0.00")

     

    let me know how this works out for you!

  • Kirsten2 Profile Picture
    383 on at

    Thank you!!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard