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
Anonymous
Not applicable

Hours per week per department, taking intra-company job changes into account

Hello,

 

I need to make an overview of hours worked per week per department. The difficulty is that employees can switch between departments from time to time (intra-company job changes). I have a table that shows all employees with their associated department and the date they started there.

 

For each job change, a new record is created. So if an employee has had 3 different jobs within the company, that employee has 3 records with each a starting date at that department. If I made an overview of the last two years, I want John's hours displayed at three different departments, depending on the week displayed.

 

Employee nameDepartmentStarting date
John DoeDept A2018-oct-10
John DoeDept B2019-mar-5
John DoeDept C2019-dec-1

 

Thanks in advance!!

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Please see the attached file with the solution included

 

If you have any questions please let me know.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

Is this problem solved?

 

Best Regards,

Icey

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Please see the attached file with the solution included

 

If you have any questions please let me know.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Anonymous
Not applicable

Hello Mariusz,

 

Thanks for your solution. It's not quite what I expected, but I can convert the "days worked in" to "hours worked in" easily.

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.