cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
U_Idigoras
Helper I
Helper I

Run flow for each unique column value in SharePoint list

I have a SharePoint list to log each workers extra hours.

Then I created a Flow that triggers once a month to make some calculations with those hours and send me an email.

 

Let's say my list is something like this:

WorkerExtra hoursTraveled km
Susan4120
Susan1738
James1171
Mike4369

 

Right now, my flow would take every row and do the calculations with all the values. But what I want is to be able to run it once for each diferent worker, so 3 times: Susan, James and Mike.

 

Any idea how can I achive that? Maybe start with a SharePoint query and store the unique values for the field 'Worker', then run the rest of the flow for each value? 

1 ACCEPTED SOLUTION

Accepted Solutions
manuelstgomes
Community Champion
Community Champion

Hi @U_Idigoras 

 

I think that could be a solid strategy. Something like this:

 

small-Screenshot_2019-11-11_at_11_13_52.jpg

 

Then you can do the calculations for each element by doing an "Apply to Each".

 

I recommend fetching only the values you need by filtering by the name by doing the following:

 

small-Screenshot_2019-11-11_at_11_18_14.jpg

 

Is this what you need?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

1 REPLY 1
manuelstgomes
Community Champion
Community Champion

Hi @U_Idigoras 

 

I think that could be a solid strategy. Something like this:

 

small-Screenshot_2019-11-11_at_11_13_52.jpg

 

Then you can do the calculations for each element by doing an "Apply to Each".

 

I recommend fetching only the values you need by filtering by the name by doing the following:

 

small-Screenshot_2019-11-11_at_11_18_14.jpg

 

Is this what you need?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,435)