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

SPO - Average from percentage on multiple items

Hello, I am in middle of creating a flow that runs upon a SharePoint List which can have multiple items and each of this item has a column with percentage, let's say "%Complete".

Now imagine, having 3 items and cycling trough them, to collect the percentage value and make average out of it.
Example:
Item1Title, 60%
Item2Title, 30%
Item3Title, 90%

Now make avg out of (60,30,90) is 60 but how do I make it in the flow?
I assume, initialize array, in for each fill it with the values, and afterwards do the avg expression? Will that work?

EDIT: I've got to a point, where I have all the values in a field variable, now how do I do the average out of these values? 

EDIT2: Solved, basically in the for each, I am incrementing value for COUNT of the items and then I also ADD values to another variable and on the end I just divide the variables by them selves... 

1 ACCEPTED SOLUTION

Accepted Solutions
Kyza
Helper II
Helper II

Making a reply to mark the question as solved.
EDIT2: Solved, basically in the for each, I am incrementing value for COUNT of the items and then I also ADD values to another variable and on the end I just divide the variables by them selves... 

View solution in original post

1 REPLY 1
Kyza
Helper II
Helper II

Making a reply to mark the question as solved.
EDIT2: Solved, basically in the for each, I am incrementing value for COUNT of the items and then I also ADD values to another variable and on the end I just divide the variables by them selves... 

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (75,212)