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 / Pass data between tables
Power Apps
Unanswered

Pass data between tables

(0) ShareShare
ReportReport
Posted on by 13

Hi

 

I am starting with power apps and I want to build a model driven app, I have 2 tables, one that indicates the operation performed in a job and the other stores various contracts with prices set, I want that when creating a new operation that the respective customer prices of the other table are available to calculate the price accordingly.

 

With the lookup column would indicate the customer, but how do I bring the other data to make the calculations required automatically?

 

 

I have the same question (0)
  • 365-Assist Profile Picture
    2,324 Moderator on at

    Can you please add some screen shots of your work so far with a bit more explanation of what you are trying to achieve.

  • Jayser_blanco Profile Picture
    13 on at

    Ok, more detail:
    I have 2 tables
    Client table: that stores client information and the established costs, each client can have different costs.
    Job table: table where the jobs performed are recorded with the respective details and the final cost.

    For example, customer A asks for several services to be performed:
    Service 1
    Service 2
    Service 3

    The prices of each service for customer A are in the customer table.

    What I am looking for is that when filling in the form in the job table the respective customer (Customer A) to be able to use the costs set for that specific customer that are in the customer table and thus automatically calculate the final price.

    Attached are the test tables I have worked with, the forms.

    The formula I want to propose for the final price is

     

    Precio final = Precio 1*Cantidad de operaciones 1 realizadas

     

    Tabla de incidencias.png

    Tabla clientes.png

    Form1.png

    Form2.png

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @Jayser_blanco , there is no direct way to calculate values in one column based on the values in another table's columns. You will need to use some sort of JavaScript, power automate or plugins at this time. Check this thread for more insight >> https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Calculated-column-using-data-from-two-tables/m-p/1358923#M15648

  • Verified answer
    365-Assist Profile Picture
    2,324 Moderator on at

    You could create an Power Automate Flow that I imagine looks something like this

     

    365Assist_1-1654730095204.png

     

    You could either trigger it by:

    - Save of record or 

    - Adding a button (or use a Business Process Flow) to the App called "Calculate Cost" to run the Flow.

     


    ---------------------------------------------------
    Please mark as Answer if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard