Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have two tables of data, one is payroll data with a calculated wage rate (Payroll Amount/Earnings Hours) and timesheet data with associated dates and hours. The payroll dates are every two weeks to correspond to how often the employees get paid. The timesheet data is daily, most times with multiple entries per day.
Problem I am trying to solve:
Calculate the labor cost (Hourly Rate * DurationHours) for each row in the timesheet data based on the UserName/Employee. The hourly rate should be the rate that was in effect as of the date of the timesheet date. In other words, I can't just use MAXX to pull the most recent Hourly Rate.
Data:
Payroll
Timesheets:
I thought I needed to use MULTIPLYX but after some research I see that isn't an actual DAX function. Any help would be much appreciated.
Hi @chervochon
How to calculate the ‘Hour Rate’ ? Is the user name corresponding to the Hour rate in the Payroll table unique ? The same question, are the user names corresponding to ‘DurationHours’ in the Timesheets table unique ?
What is the final result you want, could you give me an example?
Best Regards
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
89 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |