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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Counting Values in Sha...
Power Automate
Suggested Answer

Counting Values in Sharepoint List with Power Automate

(0) ShareShare
ReportReport
Posted on by 12
Howdy I am trying to figure out how to create a flow to count how many times either of 2 out of 4 values occur in a choice column in a sharepoint list. Then i need to take that number and update another list
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,151 Super User 2026 Season 1 on at
    Hello @glandrum
     
    If you need to count how many times specific values appear in a SharePoint choice column and then update another list based on those counts, you can use Power Automate's union() function along with filtering and iterating logic to achieve this efficiently.
     
    Seps to Count Unique Values and Update a SharePoint List in Power Automate:
    1. Get Items from SharePoint.
    2. On Select action select the choice column value.
    3. Use
    union() to get distinct values from the choice column.
    union(body('Select'), body('Select'))

    4. Loop through the unique values.
    5. Filter the items for each unique value and count how many match.
    @equals(item()?['ChoiceColumnName/Value'], items('Apply_to_each'))
    6. Add compose to store the length
    length(body('Filter_array'))

    6. Update the target list with the counts.
     
     
     
     
     
    Output: 
     
    📩 Need more help? Mention@Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard