Forum Discussion
Reporting on Project Online (PWA) Timesheets
Hi all,
What is the simplest way to pull Timesheets reporting out of Project Online (PWA)?
My organisation is using the Timesheets functionality in Project Online to record the time resources spend against projects to enable project profitability reporting.
I want to be able to build a set of reports in Excel that can be automatically refreshed and combined with other data sets. My level of Excel knowledge is pretty good, and I can see an oData connection to PWA, but the mass of tables that exist in PWA are pretty daunting.
Any help or advice appreciated.
Thanks,
Andy
Hi Andy,
The easiest way is to import only the tables that you need and create a PowerPivot model in Excel.
Best practices for querying the OData feeds an be found here:
https://docs.microsoft.com/en-us/previous-versions/office/project-odata/dn776317(v%3doffice.15)
Relevant tables could be:
- Resources - resource metadata
- Projects - project metadata
- Assignments - link between project and assignment
- TimesheetLineActualDataSet - Actual Data from timesheets
- Timesheets - Link to resource and timesheet status
- TimesheetLines - Link to resource and project and timesheet line status
The complete reference can be found here: https://docs.microsoft.com/en-us/previous-versions/office/project-odata/jj163529(v%3doffice.15)
- Trutz_StephaniSteel Contributor
Hi Andy,
The easiest way is to import only the tables that you need and create a PowerPivot model in Excel.
Best practices for querying the OData feeds an be found here:
https://docs.microsoft.com/en-us/previous-versions/office/project-odata/dn776317(v%3doffice.15)
Relevant tables could be:
- Resources - resource metadata
- Projects - project metadata
- Assignments - link between project and assignment
- TimesheetLineActualDataSet - Actual Data from timesheets
- Timesheets - Link to resource and timesheet status
- TimesheetLines - Link to resource and project and timesheet line status
The complete reference can be found here: https://docs.microsoft.com/en-us/previous-versions/office/project-odata/jj163529(v%3doffice.15)
- JitiMinhas2810Copper Contributor
I am using the out of box Dashboards available in power BI linking to my PWA data but the Timesheet tables are not appearing in the lot. Why would that be and how can I add those tables please?
- Trutz_StephaniSteel Contributor
The out-of-the-box reports simply don't include the tables.
You can download the PBIX file here:
and adapt the data model to include the missing data.
- fdadrassCopper Contributor
Trutz_Stephani
I am looking to create reports from the timesheets submitted by team members. In the approvals, after a timesheet is approved, when I go back in history to pull up those timesheets, I only see a few columns and I dont get to see the admin hours submitted or the PTO hours submitted to the timesheet. Sometimes I also cant see some team members timesheet unless I delegate as them. If its only one timesheet, it would have been ok that I delegate as that team member and download the excel file but there are multiple team members and at times I would need to create reports for multiple previous weeks. Any guidance on this would be appreciated. Thank you
- Ian BrucknerIron Contributor
That really depends on what you're looking to see... Status of timesheet submission, actual hours, both?
For starters, you'll likely use oData connections and Power Query in Excel or PowerBI to make the reports.
Here's the formatting information for the odata version used by Project online: http://www.odata.org/documentation/odata-version-2-0/uri-conventions/
Here's the function reference for working with Power Query:
https://msdn.microsoft.com/query-bi/m/power-query-m-function-reference
Here's where you find the tables your data are stored in
https://sitenamehere.sharepoint.com/sites/pwa/_api/ProjectData/
Add $metadata to the end of that string to see all the attributes and data types
https://sitenamehere.sharepoint.com/sites/pwa/_api/ProjectData/$metadata
Use the odata reference above to tack on to those URLs to filter some information and select certain things. For example:
https://sitenamehere.sharepoint.com/sites/pwa/_api/ProjectData/TimesheetLines?$filter=ActualWorkBillable gt 0 & $select=ProjectId,ProjectName,TaskName,TimesheetOwnerId,TimesheetOwner,ActualWorkBillable,TimesheetPeriodId,TimesheetStatus
You can plug that straight into IE or your browser of choice to see some data return. Best, though, would be to go to the data tab in Excel, New query, From other sources, From Odata feed. Then build / merge / format other queries to your heart's content.
You can find samples in the TechNet gallery. Here's one I worked up since Project Online doesn't have a "Not yet started" stats for timesheets, but that's one of the most important for us!
https://gallery.technet.microsoft.com/Timesheet-Status-Report-37b95da2
- Andy_DennisCopper Contributor
Ian and Trutz, many thanks for your speedy replies - much appreciated.
I've not needed to explore PowerQuery so far in my career, but this will be the project that forces me to learn it I think. I'd found most of those tables and had been going through the process of filtering out unwanted columns and filtering the data for my specific projects within the query. My next steps are to complete this process, then start linking these tables together to get the simple data output that I want.
I guess I should look for a simple tutorial in PowerQuery to learn a few basics, but I can't help just getting in there and playing around.
Your responses have definitely confirmed that I am taking the right approach, so thank you for that. I really just need to learn how to use these modern data tools in Excel!
The links provided will I'm sure be helpful too, thank you!
Wish me luck...
Andy