web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Count items in a Share...
Power Automate
Unanswered

Count items in a SharePoint list based on criteria and update in second list

(0) ShareShare
ReportReport
Posted on by 184

Hi there,

I have two SharePoint lists, A list of registrations to tutor different courses (List has Tutor name, course selected, other details)A new row is created each time someone signs up to mentor and the fields are filled from the form.  The second is the course list (Course name, course contact, etc).

In the course list, I would like to be able to create a live or close to live count for the number of mentors who have registered for each course (something we previously did with a Countif function in Google Sheets.

It looked like this functionality used to be available directly in SharePoint lists as part of the lookup function in the old UI however, has been lost in the new UI.  We have just migrated from Google, so our institution only allows access to the new UI.

I’m wondering if there is a Flow I could build to do this, either which is triggered by a new registration being submitted via the Registration Microsoft Form or on a timer which runs a Flow ever half day or so.

I was playing with the idea of:  

Start: Recurrence trigger

-> Get items (Course list)

-> Get items (Registration list)

-> Condition (If Course column (Course list)=Course column (Registration list))

-> if Yes -> Update item (Course list) – Registration Count column field = (equivalent of a Countif expression)

However, I couldn’t find if there was an expression for this.

Any help or advice would be hugely appreciated.

Categories:
I have the same question (0)
  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @PipManifold ,

     

    Have you take a try to create the flow?

    Do you have problem on the expression to subtract the Update item (Course list) with Registration Count column field?

    You could take a try with sub() expression to subtract the Update item (Course list) with Registration Count column field, hope the document about workflow definition language could be your reference:

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard