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 Automate / SharePoint aggregate S...
Power Automate
Answered

SharePoint aggregate Sum to Another List.

(0) ShareShare
ReportReport
Posted on by 51

Hello All,

I have created a flow it is doing one part of the job I am stuck in the second part for the flow.

 

I have a SP list (A) WP Table with work packages (WP) for projects and every project can have 4-10 WP's. 

I have a SP List (B) Project Summary Table which Has Project Number and Project Cost &  Project Spent columns.  

 

The flow sums  the project cost for the Project Number in List A but when in the flow  I update the List B the Total Sum of the Project Cost is applied to all project numbers.

It should look like the description in the  example below.

List A                                                                                     List A 

 Project ID    WP Number   WP Title        Budget                 Project ID    Total Cost    Total Spent       

 

1111            80000             Admin             $5,000                 1111          $100,000

1111            90000             Mgmt.           $15,000                 2222           $96,000

1111            70000             Supplier         $50.000

1111            60000             Cont.             $25,000

2222            80000             Admin             $1000

2222            90000             Mgmt.           $25,000

2222           70000             Supplier         $75.000

         

TarunaM_0-1686251495130.pngTarunaM_1-1686251611364.png

TarunaM_2-1686251646645.pngTarunaM_3-1686251690996.pngTarunaM_4-1686251808182.png

Please let me know what step I am doing incorrect.

 

Thanks

Taruna

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @TarunaM 

     

    The last "Apply to each" action is not appropriate that contains "Get items 2" and "Update item" actions. Instead, first use the "Get items" action for List B and use filter query to get the record based on project ID (same way as you did in Get items for List A). After that add a new "Apply to each" action, get the result value obtained from List B and add update item action inside it to save the total value in the record present in List B.

     

    If this helps, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • TarunaM Profile Picture
    51 on at

    Hello Manish,

    I did update as mentioned, but still the same.

    Instead, first use the "Get items" action for List B and use filter query to get the record based on project ID 

    TarunaM_0-1686277674219.png

    After that add a new "Apply to each" action, get the result value obtained from List B and add update item action inside it to save the total value in the record present in List B.

    TarunaM_1-1686277740301.png

     

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @TarunaM 

     

    I would request you to double check if ID in Update item action comes from 'Get items 2' action.

     

    If this solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Verified answer
    TarunaM Profile Picture
    51 on at

    Hi Manish,

    Yes, ID in Update item action comes from 'Get items 2' action. The image below shows that, I left that on purpose. 

    TarunaM_1-1686342183277.png

     

    TarunaM_0-1686342147556.png

    Thanks

    Taruna

     

  • TarunaM Profile Picture
    51 on at

    Hi Manish,

    Apologies for late response, it worked I was caught up with other stuff could not respond earlier.

     

    Thanks

    Taruna

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 Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard