Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
chervochon
New Member

Hourly Payroll Rate for Timesheet Entry

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

chervochon_0-1625593957994.png

 

Timesheets:

chervochon_1-1625594129002.png

 

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.

 

1 REPLY 1
v-yetao1-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.