Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Count items based on a specific column value and update a second list


I have a SharePoint list with all the users that have requested an Account. When adding a new item, a user needs to fill in his name, and his group. Currently, my list has 100+ entries and I would like to create a workflow, that counts how many users are in each group, and those value would be used to fill in a column in another list.

Basically, the 2nd list is just a copy of the first one, but it only has 2 columns: the GROUP NAMES and NUMBER OF MEMBERS of each group. This 2nd list needs to be updated automatically based on the first list.

Any ideas on how to do that?


Regular Visitor

I've managed to count the members from ONE group, and update that specific group in the other list, with the following workflow:

- get items (first list)

- if the group of the item = X 

- increment a variable

- get items (2nd list)

- if the group of the item = X

- update item with that variable

And it works, it counts the members of group X in the first list, and updates the number of members of the same group in the second list.

How can I do the same thing, but for all groups (20+), in one go?!

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,226)