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 / 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
    209 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

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 478 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 247 Moderator

#3
abm abm Profile Picture

abm abm 231 Most Valuable Professional

Last 30 days Overall leaderboard