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 - Building Flows
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?
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,515 Super User 2025 Season 2 on at
    Calculate Values to Populate Excel Table
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard