cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jjasper
Helper III
Helper III

Adding todays numbers to previous numbers

good morning, 

 

I have three SharePoint lists. The first collects data by neighborhood for active cases and the second collects data by village for swabs. The third is where all the
numbers get added together. Each day numbers are inputted and I want to add them to the previous day. So basically every time a village gets added into the COVID Numbers
SharePoint list I want to total those numbers for each village and then add them together with the previous number in the Total SharePoint list. I want a constant running
total of cases for each village when they are in outbreak.

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @jjasper,

 

So you could use Get items + Order By to get the yesterday item every day:

 Screenshot 2021-01-01 101553.jpg

 

Then use expression to extract column value, the index '0' after the body/value is the first member of the Get items return array. On the right of '0' is column name:

outputs('Get_items')?['body/value'][0]['NumberColumnName']

Screenshot 2021-01-01 101602.jpg

 

Then you could do repeatedly to get List 2 number, then add them into List 3.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-litu-msft
Community Support
Community Support

Hi @jjasper,

 

So you could use Get items + Order By to get the yesterday item every day:

 Screenshot 2021-01-01 101553.jpg

 

Then use expression to extract column value, the index '0' after the body/value is the first member of the Get items return array. On the right of '0' is column name:

outputs('Get_items')?['body/value'][0]['NumberColumnName']

Screenshot 2021-01-01 101602.jpg

 

Then you could do repeatedly to get List 2 number, then add them into List 3.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,991)