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 with value i...
Power Apps
Answered

Calculate with value in another table

(0) ShareShare
ReportReport
Posted on by 255

How do you specifically take a column from one table to use as a calculation in another table? For instance, I have a product table. A customer buys many products. I need to take the list price of product and times it by the quantity a customer is buying. How can I make column with this calculation? (and have it inside the customer table.. to keep track of all purchases)

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @ChannelDevMike 

    1. Where are you storing product price?

    2. Can you share how your data is structured?

    But what you are talking about can be a mixture of calculated field on the purchase table where you multiply product price by quantity

    On the customer table you will need a roll-up field that sums up the calculated column on the purchase table.

  • ChannelDevMike Profile Picture
    255 on at

    I was trying to simplify my question because my other questions weren't getting answered. But real data is this..

    A customer is getting a quote. The quote looks like this:

    ChannelDevMike_0-1664397010816.png

    Relationship data = One customer to many Quotes

    Then in the subgrid, I have quote product. And Relationship data = One quote to many quote products.

    Quote Products looks like this:

    ChannelDevMike_1-1664397285012.png

    Relationship data = One Product to many quote products.

    I was trying to make a calculated field "Product total" That would take "list price" (from product table) and multiply it by quantity in quote products. 

    Then, once that is done. To use a rollup in Quote that will sum all the "Product totals". (Which I believe I can get that part working).


    For your questions directly, 
    1. Product price (real data = list price) is in the product table. 
    2. Did this explain how its structured or is there another way that suits your preferences? Sorry, still learning how to explain problems!

  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @ChannelDevMike 

    As per our teams conversation please see the below steps that helped fixing the problem.

    1. On the Custom Quote Product Add a Total Amount Hidden

    2. Set the Total Amount Hidden to be the Rollup Aggregate on the Custom Quote

    3. Set the Calculated Field as below

     

    Mira_Ghaly_0-1664400252980.png

    3. Add the Product Total and Total Amount hidden to the form of custom Quote Product.

    4. Hide Total Amount Hidden Column

    5. Business Rule that sets the Total Amount Hidden to be equal to Product Total

     

     

  • ChannelDevMike Profile Picture
    255 on at

    You were so awesome! Thanks a bunch 🙂 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard