cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

how can I sum all rows value

Hello , my excel file has four column , and one column is number ( like 2,50,9,0,33.....etc) , I want to sum all rows and put it in to a string variable  .

 

So how can I get it ??

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate IV
Advocate IV

Re: how can I sum all rows value

Hi @JACK_LAI ,

 

ich have put the following File to my OneDrive:

 

FlowHelpFile.png

 

The flollowing Flow will iterate through the Rows and increment the Variable "Sum".

 

FlowHelpPicture.png

 

The Varibale Sum will now have the value of the sum of the Col1.

 

Hope that helps!

 

Best regards

Stefan

View solution in original post

4 REPLIES 4
Highlighted
Advocate IV
Advocate IV

Re: how can I sum all rows value

Hi @JACK_LAI ,

 

ich have put the following File to my OneDrive:

 

FlowHelpFile.png

 

The flollowing Flow will iterate through the Rows and increment the Variable "Sum".

 

FlowHelpPicture.png

 

The Varibale Sum will now have the value of the sum of the Col1.

 

Hope that helps!

 

Best regards

Stefan

View solution in original post

Highlighted
Helper II
Helper II

Re: how can I sum all rows value

@StefanR 

 

Thank you for your help 

 

Now I can get the result what I need 

 

Heart

Highlighted
Frequent Visitor

Re: how can I sum all rows value

I have a problem with the flow. I recreate your flow as in the picture it was correct when I used sample table but I used my actual data it gave me wrong result. the calculation is wrong. I have 1271 rows in it only calculated upto 258 rows only. so is that limit of list of rows ??

 

like total hours I am calculating 

int(items('Apply_to_each')['Hours'])
 
Highlighted
Advocate IV
Advocate IV

Re: how can I sum all rows value

Hi @nagisetty,

 

i try to have a look to it over the weekend, ok?

 

Bye

Stefan

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (9,098)