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 / Power automate Flow - ...
Power Automate
Unanswered

Power automate Flow - Filter and Sum

(0) ShareShare
ReportReport
Posted on by 10
Hello All,

Need your help on the below scenario. 

I have table where i would like to get the sum of each leave of each individual. 

Example : From the below table, I need ABC@xyz.com Casual Leave Sum, Sick Leave Sum etc., 
Similarly GYT@xyz.com Casual Leave Sum, Sick Leave Sum etc., 
 
Enterprise ID Leave Type No. of Days
ABC@XYZ.com Half Day 1
GYT@XYZ.com Casual Leave 1
ABC@XYZ.com Sick Leave 1
ABC@XYZ.com Compensatory Off 1
ABC@XYZ.com Casual Leave 2
ABC@XYZ.com Casual Leave 1
ABC@XYZ.com Planned Leave 1
ABC@XYZ.com Sick Leave 1
ABC@XYZ.com Half Day 1
GYT@XYZ.com Casual Leave 1
ABC@XYZ.com Sick Leave 1
ABC@XYZ.com Compensatory Off 1
GYT@XYZ.com Casual Leave 2
ABC@XYZ.com Casual Leave 1
ABC@XYZ.com Planned Leave 1
GYT@XYZ.com Sick Leave 1

Please help, thank you. 
Categories:
I have the same question (0)
  • CU18100238-0 Profile Picture
    10 on at
    Hi All,

    Could some one please help me with this post
  • CU18100238-0 Profile Picture
    10 on at
    Hi all,

    Please help
  • Pavel_NaNoi Profile Picture
    1,074 on at
    Just making sure we got the information right here:
     
    - This is in Power Automate Flow correct? not in Power Automate Desktop?
    - This is an Excel online table not a desktop table correct?
     
    If both of those assumptions are yes then simply do the following:
     
    - Create a "list rows present in table" excel (online) action
    - Select advanced options
    - Write the filter query, in your case you'd do something like " Enterprise ID eq  'ABC@xyz.com' " (without the double quotes but with single quotes around string values)
    - Create a Filter Array action, pass it the table array via dynamic expression, add the necessary filters for leave type, e.g. Leave type = Casual leave, Leave type = Sick leave, etc.
    - Create a compose action, write the expression Length("Your resulting composed table / array here via dynamic expression"), this will give you count of rows, do w/e you need with that.
     
    Now this will just be a working first example, if we now want to move onto making it more general you'll need to create a list rows of distinct Enterprise ID values and then put everything I've listed into a for each to automatically go through all distinct enterprise ids'
     
    Lemme know if ya need anything else.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard