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
Johalien
Frequent Visitor

Creating an employee time sheet report based on job statuses

Hi

 

I am still learning the system and please need assistance from all of you Power Bi Gurus. 

 

I need to create a report that will show the time each employee spent on different statuses of a job. Keeping in mind that the same job can change employees.

 

I am stuck on how to get the information in the same table (accurately) so that I can do the time difference formulas afterwards.

 

I already extracted the information related to the employee job allocation from the SQL server tables and appended them.

The 3 tables I appended are:

LoggedJobsCreatedLoggedJobsCreated

 

Logged Jobs CompletedLogged Jobs Completed

 

Jobs Employee AmendmentsJobs Employee Amendments

 

After I appended the tables I then filtered it to only include this year and sorted the JobNumber and DateTime columns (ascending).

 

Job Employee Allocations (Appended Table)Job Employee Allocations (Appended Table)

This is where the tricky parts come in - I need to somehow show the time that each employee spent on the different statuses per job number. There is another table that shows the status changes of the job. 

 

Job Status AmendmentsJob Status Amendments

I don't know if Power Bi can recognize the times between the two tables...

 

ScreenShot006.jpg 

 

 

ScreenShot004.jpg

 

I would appreciate all advise 🙂

 

 

 

 

 

 

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Johalien,

 

You may try adding calculated tables if necessary and use DATEDIFF Function.

http://community.powerbi.com/t5/Desktop/Finding-the-previos-occurrence-within-same-table-based-on-on...

http://community.powerbi.com/t5/Desktop/Calculate-Average-Login-Duration/m-p/236642#M105275

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@ Sam Thank you for your input. I am not ready to do the time calculations yet. I am still trying to determine how Power Bi can recognize what action happened when. I created date and time dim tables respectively - trying to figure out how (and if this is correct way of going about this) they need to be integrated with my data tables that contains the employee and status changes.

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.