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 / Submit information to ...
Power Apps
Unanswered

Submit information to more than one list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I am currently working on an application in which the user is a manager, who tracts the weekly expenses of a project.

 

I have two lists: Project List AND Employee List

 

In a given project a manager will update the costs associated with the employees (which are predetermined from a pricing-list, which I have connected).

 

My question is this:

 

Is it possible to  BOTH submit the project costs AND to a given employee if the employee is connected to the project?

 

So for example:

 

Tom, Anna and Jane are connected to the project "Project1", which runs over 4 weeks.

week1:

Tom: 10

Anna: 5

Jane: 10

 

week2:

Tom:20

Anna:15

Jane:5

 

week3:

Tom:10

Anna20

Jane:10

 

Week4:

Tom: 10

Anna:5

Jane: 20

 

OVERALL COSTS: 140

 

Tom Costs: 50

Anna: 45

Jane: 45

 

 

The Project will be closed and have an overall cost of 140. But I would ideally like to ADD the employee costs to the employees OVERALL costs, meaning if they are/have been connected to other projects, it will be added on top of the existing costs of the employee in their row on the SharePoint List "Employees".

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @Anonymous ,

    I would approach it by totaling the costs per person - as an example

    Set(
     vTomCosts
     Sum(
     Filter(
     EmployeeList,
     Employee = "Tom"
     ),
     Costs
     )
    )

    will get you the total of Tom's costs from the Employee list in a Variable called vTomCosts.

    You could do the same on the project list - you can then add the Variables together for the total.

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz ,

     

    Thank you for you comment.

     

    Not sure I follow exactly how this would work. Can you possibly elaborate?

     

    So if I sum of up the costs of a given employee from the specific project and make a variable for that given employees costs, I can add those up, or how do you intend to do it?

  • ilton Profile Picture
    194 on at

    Is there a 3rd list? I'm having trouble determining where the employee costs for each projects are stored

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ilton,

     

    Hi!

     

    Yes, I apologise for the confusion.

     

    I have a THIRD list called PRICING, which determines the prices of the different consultants. In the PIPELINE list we choose the consultants and then we multiply by the days in which the project will last and add all of the costs/prices to get the price of the total project (as an initial price) and more importantly the forecasted price from our side.

     

    This data gets pulled into the list, which I am now talking about so that we can determine the exact costs of the given project.

  • ilton Profile Picture
    194 on at

    @Anonymous 

    You can submit via UpdateIf 

    incrmenting

    UpdateIf(employeeDataSource, id = employeeInQuestion.id, {costs: costs + 20})

    or setting

    UpdateIf(employeeDataSource, id = employeeInQuestion.id, {costs: 50})

     

    if you use updateIf instead of SubmitForm(NewOrUpdateForm) you can costumize and call UpdateIf for diferent datasets.

    Apologies if the answer is a bit confusing, let me know if you're unable to solve this with updateIf 

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @ilton 

     

    Thank you again!

     

    This gets me something to work with.

     

    One question if I may: Does this require for me to use a LookUp column to get the information of the ID of the given employee from the Employee List?

     

    My problem is that at times there might be many consultants connected to a project. As far as I understand there is still a limit to the amount of LookUp columns one list can contain, correct?

     

    And a second if I you will allow me to be really annoying: With your knowledge is there any way you can see that these costs can be connected to a year for example? So if I am trying to understand an employees total "value" in a year I would then create a column for "Costs 2020", "Costs 2021", etc. and then increment all costs associated with the consultant based on the start-date of the project?

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @Anonymous ,

    Back in my time zone now 6:00am here. Please tag me if you wish to continue thread with my possible solution.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Hi sir @WarrenBelz

    I certainly am. Would like to keep the options open. If you could elaborate I would be happy
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    Hi @Anonymous ,

    Yes you would simply add the variables together.

    I do this with components of project costs where an estimate can be done instantly off the input from the app. It is not a difficult process

    Set(
     TotalCosts,
     Variable1 + Variable2 + Variable3
    )

     

    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.

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

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard