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

Community site session details

Session Id :
Power Automate
Unanswered

Count column data

(0) ShareShare
ReportReport
Posted on by 527

Hi,

I have a SharePoint List column data (This data will be changing daily based on requirement)

 

Department

STORES

Machine Shop

PUA4

HR

MAINTENANCE

STORES

STORES

Machine Shop

 

My Flow 

 

knsrinath_0-1697168600997.png

knsrinath_1-1697168610024.png

I am getting unique department details by Compose action knsrinath_2-1697168621251.png

 

Request your support to Count department wise (length) function in power Automate or any other alternate method.

Final output required as follows in html table.

Department

SUM

STORES

3

Machine Shop

2

PUA4

1

HR

1

MAINTENANCE

1

 

Thanks & Regards

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: Count column data

    Hi @knsrinath ,,

    Do you want to count every item in the same department?

    If so, I have a test for your reference.

    In my scenario:

    vyetonggumsft_6-1697187859574.png

    vyetonggumsft_7-1697188183873.png

     

    union(body('Select_2'),body('Select_2'))

     

    vyetonggumsft_2-1697187661502.pngvyetonggumsft_3-1697187688138.png

     

    items('Apply_to_each')['Title']

     

    vyetonggumsft_4-1697187749086.png

     

    length(body('Filter_array'))

     

    vyetonggumsft_5-1697187815546.png

     

    Best Regards,

    Sunshine Gu

     

     

     

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard