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 / How to get the aggrega...
Power Automate
Answered

How to get the aggregate data from the one sharepoint list and use it another list

(1) ShareShare
ReportReport
Posted on by 12

I have a sharepoint list in which the data comes of the employee weekly of a month , now I want to get the totalhours the employee has worked in that particular month and use it another sharepoint list.

The data come for the different employees .
How can I resolve this?

@abm

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Ashishsingh 

     

    First you need to find all the unique employees. Then filter the data set using each employee and date (month).

     

    If you need further help let me know. Post a sample screen shot of your data.

     

    Thanks

  • Ashishsingh Profile Picture
    12 on at

    In the list i have different employees and the month.
    Now I want to get the data of each employee with the amount of totalhours they have worked in the month.

    @abm 

     

    Screenshot 2024-06-12 131433.png

     

    In this way the data is coming of all the employees. Now I want to run the flow in such a way that in the new sharepoint list I get that data of each employee with the aggregate sum

  • Verified answer
    sandeepstw Profile Picture
    312 Moderator on at

    Hi @Ashishsingh ,

     

    You can do using initialize a veriable "EmployeeData" as array type. 

     

    Apply to each item in SourceList -
    Get EmployeeName, Week, HoursWorked
    Extract Month from Week

     

     

    If EmployeeName-Month exists in employeeData -
    Update total hours
    Else:
    Add new entry with EmployeeName, Month, TotalHours

     

    Apply to each entry in employeeData -
    If entry exists in DestinationList -
    Update item with new TotalHours
    Else:
    Create new item with EmployeeName, Month, TotalHours

     

    Using this way you can create your flow. 

     

    Mark as solution if it helps. 

     

    Thanks,

    Sandeep Mishra

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Ashishsingh 

     

    I can see the dates for the week. How about dates for the week falls between current month and next month?

     

    May 26th to June 1st? How to capture this in your list you provided? 

     

    Do you do the split entry's here?

     

    Thanks

     

  • Ashishsingh Profile Picture
    12 on at

    Yes i have split the date monthly. And the data which I received is also splitted.

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard