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 / Calculate Values to Po...
Power Automate
Suggested Answer

Calculate Values to Populate Excel Table

(0) ShareShare
ReportReport
Posted on by
Hi 
When my manager asked me to do a flow ,I had a problem 
It is hoped that when an employee submits an overtime application, it initiates an approval, and after the approval is passed, it is collected on Excel or List. All of the above can be achieved. But I ran into the following problem
1. Employees may work overtime multiple times a month, and hope that each overtime work can be recorded in the same line
2. There is a column in excel and list to calculate overtime wages, but the overtime wages on weekdays are 1.5 times the daily wage, that is, the working hours should be calculated as 1.5H, at the same time, weekends are calculated as 2 times, and statutory holidays are 3 times.
In this case, how can I solve the above problem?
Categories:
  • Suggested answer
    David_MA Profile Picture
    15,696 Super User 2026 Season 2 on at
    Without knowing what data is being captured when an approval is submitted, it is hard to tell you what to do. However, here is some basic guidance:
    1. If you're capturing the dates for pay, you can use the DayOfWeek() expression (https://learn.microsoft.com/en-us/power-automate/minit/date-and-time-operations#dayofweekdate) to determine if it is a weekday or weekend. It returns 0 for Sunday and 6 for Saturday.
    2. You can then use a condition to check if what is returned is equal to 0 or 6 and then use the mul() (https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#mul) to multiple the wages by 1.5.
    3. You can use other expressions to see if overtime needs to be paid.
    4. To test some of the expressions, use variables and compose actions. You can then run your flow and see the result to make sure it is correct.
    What you want to do can certainly be done, but it is not exactly simple since you need to ensure the data needed is available in your process and you need to know how to build expressions and conditions. 
     
    The biggest hurdle will be with figuring out the holidays. Here is a post that goes into some of the issues you will encounter with your process: Excluding weekends and holidays in date differences in PowerApps - Microsoft Power Platform Blog
     
    I would start building your flow, and then when you encounter a specific issue you run into, post a question specific to the issue and show your flow and how the action is configured. Also provide any error messages you get.
     
    I doubt anyone in these forums is going to show you how to completely build what you are asking. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard