web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculate with value i...
Power Apps
Unanswered

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,413 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,413 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard