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 / Add multiple row havin...
Power Automate
Answered

Add multiple row having same Email ID in one SP List and update that total value in another SP list

(0) ShareShare
ReportReport
Posted on by 96

Hello All,

 

I have a SP list which contains Comp Off Data which user enter time to time. I am calculating the number of Days in the same SP list through a calculated column (sample image below). What i want is to add all the days for a particular email ID and update the same in another SP list having the same Email ID column. 

 

Prateek9_0-1693921837317.png

 

Desired Output in another SP List : Check if email id exist , if yes - then update the value (if there is any change) OR if no - then add the email ID along with total number of CompOff's

Prateek9_1-1693922130724.png

Could you please help me with this and i am quite novice in this regard. Not sure if Sharepoint list itself provide any easy way for this ,i could only thing of doing this through Power Automate but if that is also available , do let me know.

 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Prateek9 ,

     

    I made a sample for you.

    vxiaochenmsft_0-1693967033141.png

    vxiaochenmsft_1-1693967041032.png

    vxiaochenmsft_2-1693967104101.png

    vxiaochenmsft_3-1693967189772.png

    {
    "root": {
    "Numbers": @{body('Select_2')}
    }
    }

     

    vxiaochenmsft_4-1693967253306.png

    xpath(xml(outputs('Compose')), 'sum(/root/Numbers)')
     
    Best Regards,
    Wearsky
  • Prateek9 Profile Picture
    96 on at

    thanks @v-xiaochen-msft  😀

     

    it worked perfectly . But i would be grateful if you can also explain a bit what was done to get this solution . Basically the actions that were performed ( Select , filter array ,Compose, xpath  etc. )

     

    I also need to learn rather than just copy pasting the solution so that i know what to do in future 🙂.

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 Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard