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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,220)