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

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,985)