cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlexandruChiser
Frequent Visitor

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

Hello,

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?

Thanks!

1 REPLY 1
AlexandruChiser
Frequent 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

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,952)