cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JACK_LAI 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
StefanR 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
StefanR 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

JACK_LAI 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

nagisetty
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'])
 
StefanR 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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,693)