Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Count items in one list and return them in another

(0) ShareShare
ReportReport
Posted on by 138

I am working on a flow where a program owner sees a list of applicants for the program and when the program owner assigns the applicant to a session (3-01 cohort in the example below), the flow looks at all the classes in the Class Schedules & Rosters list that are cohort 3-01 and creates each in the Class Assignments list that we use for rosters.

 

The list I'm using the titled "Class Schedules & Rosters" uses the following columns:

  • FilledSeats (CountRelated LookUp of the Class Assignments list)
  • SeatCount (Number column)
  • Seats_Available (Number column)
  • Course Title (Look up of the course title from the Course Title list)

jouney.jpg

 

I'm able to do everything in the flow BUT rather than using the FilledSeats (CountRelated LookUp) I'm trying to automate the filled seat count so that when a new class assignment is added it reduces the Seats_Avail column by 1. Additionally when a learner moves from one session to another their count is subtracted from the session their leaving and added to the session they going to.

 

I'm trying to stay away from lookups too but beyond using a calculated column to bring in how many seats are taken, I'm not sure how to do what I want. The other issue too is that because the Filled Seats is calculated AND a count related, I can't get it, or find it when trying to pull it into a Power Automate.

 

ASK: Using Power Automate is there a way to create a flow where the list item is created or modified you get a count of how many learners are enrolled in each distinct class in the class assignments list and then add that number to that class in the Class Schedule and Rosters List?

Scenario: If the same class is listed say, 10 times for 10 different learners, that the Seats_Available column is the SeatsCount - Seats assigned in the class assignments list?

 

1.jpg

2.jpg

3.jpg

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1