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 / Total a SharePoint Col...
Power Automate
Unanswered

Total a SharePoint Column to include in an email sent by Power Automate

(0) ShareShare
ReportReport
Posted on by 17

I've built a SharePoint calendar that I'm using to track employee vacation time. The employee logs into a PowerApp, enters their information (including the amount of hours they are requesting off) and clicks a submit button. When the submit button is clicked a flow is triggered which generates a "Send an Email with options" to obtain the manager's approval.

 

What I'm trying to do is total the number of hours that an employee has already taken off for the current calendar year. The formula will need to look at 3 columns.

  • Employee Name is the same as the employee requesting the time off
  • Start Date = In current year
  • Status = Approved

The return value should be the sum of the "Total Hours Used" column. 

 

The idea is that the email that is sent to the manager should tell the manager how much time the employee has been approved to take off so far this year.

 

How can I accomplish that?

Categories:
I have the same question (0)
  • Verified answer
    Brad_Groux Profile Picture
    4,556 on at

    @Juliet wrote:

    What I'm trying to do is total the number of hours that an employee has already taken off for the current calendar year. The formula will need to look at 3 columns.

    • Employee Name is the same as the employee requesting the time off
    • Start Date = In current year
    • Status = Approved

    The return value should be the sum of the "Total Hours Used" column. 


    Why not just use the SharePoint list to calculate the value? Create a new Calculated Column like "Sum of Hours."

    Recommended Reading

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • v-alzhan-msft Profile Picture
    on at

    Hi @Juliet ,

     

    Have you take a try to create the flow?

    What is the problem when you create the flow?

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Juliet Profile Picture
    17 on at

    Hi @v-alzhan-msft ,

     

    I did put in a "Get Items" action into my current flow, however, I've not had any luck with getting the syntax's down or figuring out how the output worked.

  • v-alzhan-msft Profile Picture
    on at

    Hi @Juliet ,

     

    Could you please share a screenshot of the configuration of your flow?

     

    Best regards,

    Alice       

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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