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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard