Case 3: project budget and actual cost
Is the money enough? The timesheet only has hours. You turn them into actual cost, compare it with the budget and build the chart for the steering committee.
In short: SUMX(Timesheet, Timesheet[Hours] * RELATED(Resource[HourlyRate])) multiplies every entry by the rate of the person who booked it. Budget used is DIVIDE([Actual Cost], SUM(Project[Budget])).
Task 1: actual cost
Task The timesheet only has hours; the hourly rate belongs to the resource. Create the measure "Actual Cost": for each entry hours times the resource's hourly rate, then the sum. Use SUMX and RELATED.
Project 7 rows, 7 columns
| ProjectID | Project | Division | Manager | StartDate | EndDate | Budget |
|---|---|---|---|---|---|---|
| 1 | Website relaunch | Marketing | Emma Clarke | 3 Mar 2025 | 31 Oct 2025 | 157000 |
| 2 | ERP rollout | IT | Tom Walker | 5 May 2025 | 26 Jun 2026 | 341000 |
| 3 | Warehouse redesign | Operations | Emma Clarke | 1 Sep 2025 | 24 Apr 2026 | 147000 |
| 4 | Customer portal | IT | Tom Walker | 12 Jan 2026 | 18 Dec 2026 | 267000 |
| 5 | Trade show 2026 | Marketing | Emma Clarke | 2 Feb 2026 | 25 Sep 2026 | 145000 |
| 6 | Warehouse scanners | Operations | Tom Walker | 4 May 2026 | 26 Feb 2027 | 203000 |
| 7 | Data center move | IT | Emma Clarke | 1 Feb 2027 | 24 Sep 2027 | 164000 |
Task 52 rows, 7 columns
| TaskID | ProjectID | Task | StartDate | DueDate | FinishDate | PlannedHours |
|---|---|---|---|---|---|---|
| 1 | 1 | Project management | 3 Mar 2025 | 31 Oct 2025 | 12 Nov 2025 | 385 |
| 2 | 1 | Briefing | 3 Mar 2025 | 9 May 2025 | 2 May 2025 | 130 |
| 3 | 1 | Campaign concept | 7 Apr 2025 | 6 Jun 2025 | 13 Jun 2025 | 333 |
| 4 | 1 | Visual design | 12 May 2025 | 11 Jul 2025 | 4 Jul 2025 | 504 |
| 5 | 1 | Copywriting | 16 Jun 2025 | 15 Aug 2025 | 12 Aug 2025 | 288 |
| 6 | 1 | Production | 14 Jul 2025 | 19 Sep 2025 | 16 Sep 2025 | 510 |
| 7 | 1 | Launch | 18 Aug 2025 | 24 Oct 2025 | 21 Oct 2025 | 220 |
| 8 | 2 | Project management | 5 May 2025 | 26 Jun 2026 | 22 Jun 2026 | 720 |
| 9 | 2 | Requirements | 5 May 2025 | 8 Aug 2025 | 8 Aug 2025 | 504 |
| 10 | 2 | Design concept | 23 Jun 2025 | 26 Sep 2025 | 19 Sep 2025 | 322 |
| 11 | 2 | Build phase 1 | 11 Aug 2025 | 14 Nov 2025 | 20 Nov 2025 | 650 |
| 12 | 2 | Build phase 2 | 6 Oct 2025 | 2 Jan 2026 | 6 Jan 2026 | 650 |
Showing the first 12 of 52 rows.
Timesheet 673 rows, 5 columns
| EntryID | Date | TaskID | ResourceID | Hours |
|---|---|---|---|---|
| 1 | 7 Mar 2025 | 1 | 1 | 13 |
| 2 | 7 Mar 2025 | 2 | 2 | 13.5 |
| 3 | 14 Mar 2025 | 1 | 1 | 10 |
| 4 | 14 Mar 2025 | 2 | 2 | 15.5 |
| 5 | 21 Mar 2025 | 1 | 1 | 10 |
| 6 | 21 Mar 2025 | 2 | 2 | 12.5 |
| 7 | 28 Mar 2025 | 1 | 1 | 12.5 |
| 8 | 28 Mar 2025 | 2 | 2 | 14 |
| 9 | 4 Apr 2025 | 1 | 1 | 12.5 |
| 10 | 4 Apr 2025 | 2 | 2 | 14 |
| 11 | 11 Apr 2025 | 1 | 1 | 14 |
| 12 | 11 Apr 2025 | 2 | 2 | 15 |
Showing the first 12 of 673 rows.
Measures: [Actual Hours]
Resource 10 rows, 5 columns
| ResourceID | Name | Role | HourlyRate | DailyHours |
|---|---|---|---|---|
| 1 | Emma Clarke | Project manager | 95 | 8 |
| 2 | Tom Walker | Project manager | 95 | 8 |
| 3 | Lucy Evans | Developer | 85 | 8 |
| 4 | Ravi Patel | Logistics planner | 75 | 8 |
| 5 | Mia Lang | Developer | 80 | 6 |
| 6 | Sam Kerr | Consultant | 110 | 8 |
| 7 | Grace Ross | Designer | 75 | 8 |
| 8 | Ben Hughes | Logistics planner | 70 | 8 |
| 9 | Olivia Turner | Marketing | 70 | 6 |
| 10 | Jack Brooks | Purchasing | 65 | 8 |
Date 730 rows, 4 columns
| Date | Year | Month | MonthName |
|---|---|---|---|
| 1 Jan 2025 | 2025 | 1 | Jan |
| 2 Jan 2025 | 2025 | 1 | Jan |
| 3 Jan 2025 | 2025 | 1 | Jan |
| 4 Jan 2025 | 2025 | 1 | Jan |
| 5 Jan 2025 | 2025 | 1 | Jan |
| 6 Jan 2025 | 2025 | 1 | Jan |
| 7 Jan 2025 | 2025 | 1 | Jan |
| 8 Jan 2025 | 2025 | 1 | Jan |
| 9 Jan 2025 | 2025 | 1 | Jan |
| 10 Jan 2025 | 2025 | 1 | Jan |
| 11 Jan 2025 | 2025 | 1 | Jan |
| 12 Jan 2025 | 2025 | 1 | Jan |
Showing the first 12 of 730 rows.
SUMX goes through the timesheet row by row, and RELATED fetches the rate from the Resource table in every row. The lessons on SUMX and iterators and LOOKUPVALUE and RELATED explain both.
Task 2: budget used
Task Create the measure "Budget Used": actual cost divided by the sum of Project[Budget], using DIVIDE.
Project 7 rows, 7 columns
| ProjectID | Project | Division | Manager | StartDate | EndDate | Budget |
|---|---|---|---|---|---|---|
| 1 | Website relaunch | Marketing | Emma Clarke | 3 Mar 2025 | 31 Oct 2025 | 157000 |
| 2 | ERP rollout | IT | Tom Walker | 5 May 2025 | 26 Jun 2026 | 341000 |
| 3 | Warehouse redesign | Operations | Emma Clarke | 1 Sep 2025 | 24 Apr 2026 | 147000 |
| 4 | Customer portal | IT | Tom Walker | 12 Jan 2026 | 18 Dec 2026 | 267000 |
| 5 | Trade show 2026 | Marketing | Emma Clarke | 2 Feb 2026 | 25 Sep 2026 | 145000 |
| 6 | Warehouse scanners | Operations | Tom Walker | 4 May 2026 | 26 Feb 2027 | 203000 |
| 7 | Data center move | IT | Emma Clarke | 1 Feb 2027 | 24 Sep 2027 | 164000 |
Task 52 rows, 7 columns
| TaskID | ProjectID | Task | StartDate | DueDate | FinishDate | PlannedHours |
|---|---|---|---|---|---|---|
| 1 | 1 | Project management | 3 Mar 2025 | 31 Oct 2025 | 12 Nov 2025 | 385 |
| 2 | 1 | Briefing | 3 Mar 2025 | 9 May 2025 | 2 May 2025 | 130 |
| 3 | 1 | Campaign concept | 7 Apr 2025 | 6 Jun 2025 | 13 Jun 2025 | 333 |
| 4 | 1 | Visual design | 12 May 2025 | 11 Jul 2025 | 4 Jul 2025 | 504 |
| 5 | 1 | Copywriting | 16 Jun 2025 | 15 Aug 2025 | 12 Aug 2025 | 288 |
| 6 | 1 | Production | 14 Jul 2025 | 19 Sep 2025 | 16 Sep 2025 | 510 |
| 7 | 1 | Launch | 18 Aug 2025 | 24 Oct 2025 | 21 Oct 2025 | 220 |
| 8 | 2 | Project management | 5 May 2025 | 26 Jun 2026 | 22 Jun 2026 | 720 |
| 9 | 2 | Requirements | 5 May 2025 | 8 Aug 2025 | 8 Aug 2025 | 504 |
| 10 | 2 | Design concept | 23 Jun 2025 | 26 Sep 2025 | 19 Sep 2025 | 322 |
| 11 | 2 | Build phase 1 | 11 Aug 2025 | 14 Nov 2025 | 20 Nov 2025 | 650 |
| 12 | 2 | Build phase 2 | 6 Oct 2025 | 2 Jan 2026 | 6 Jan 2026 | 650 |
Showing the first 12 of 52 rows.
Timesheet 673 rows, 5 columns
| EntryID | Date | TaskID | ResourceID | Hours |
|---|---|---|---|---|
| 1 | 7 Mar 2025 | 1 | 1 | 13 |
| 2 | 7 Mar 2025 | 2 | 2 | 13.5 |
| 3 | 14 Mar 2025 | 1 | 1 | 10 |
| 4 | 14 Mar 2025 | 2 | 2 | 15.5 |
| 5 | 21 Mar 2025 | 1 | 1 | 10 |
| 6 | 21 Mar 2025 | 2 | 2 | 12.5 |
| 7 | 28 Mar 2025 | 1 | 1 | 12.5 |
| 8 | 28 Mar 2025 | 2 | 2 | 14 |
| 9 | 4 Apr 2025 | 1 | 1 | 12.5 |
| 10 | 4 Apr 2025 | 2 | 2 | 14 |
| 11 | 11 Apr 2025 | 1 | 1 | 14 |
| 12 | 11 Apr 2025 | 2 | 2 | 15 |
Showing the first 12 of 673 rows.
Measures: [Actual Hours], [Actual Cost]
Resource 10 rows, 5 columns
| ResourceID | Name | Role | HourlyRate | DailyHours |
|---|---|---|---|---|
| 1 | Emma Clarke | Project manager | 95 | 8 |
| 2 | Tom Walker | Project manager | 95 | 8 |
| 3 | Lucy Evans | Developer | 85 | 8 |
| 4 | Ravi Patel | Logistics planner | 75 | 8 |
| 5 | Mia Lang | Developer | 80 | 6 |
| 6 | Sam Kerr | Consultant | 110 | 8 |
| 7 | Grace Ross | Designer | 75 | 8 |
| 8 | Ben Hughes | Logistics planner | 70 | 8 |
| 9 | Olivia Turner | Marketing | 70 | 6 |
| 10 | Jack Brooks | Purchasing | 65 | 8 |
Date 730 rows, 4 columns
| Date | Year | Month | MonthName |
|---|---|---|---|
| 1 Jan 2025 | 2025 | 1 | Jan |
| 2 Jan 2025 | 2025 | 1 | Jan |
| 3 Jan 2025 | 2025 | 1 | Jan |
| 4 Jan 2025 | 2025 | 1 | Jan |
| 5 Jan 2025 | 2025 | 1 | Jan |
| 6 Jan 2025 | 2025 | 1 | Jan |
| 7 Jan 2025 | 2025 | 1 | Jan |
| 8 Jan 2025 | 2025 | 1 | Jan |
| 9 Jan 2025 | 2025 | 1 | Jan |
| 10 Jan 2025 | 2025 | 1 | Jan |
| 11 Jan 2025 | 2025 | 1 | Jan |
| 12 Jan 2025 | 2025 | 1 | Jan |
Showing the first 12 of 730 rows.
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The total row also contains the budget of the data center move, which has no cost yet. That is why the total is clearly lower than most projects.
Task 3: budget used in a chart
Task For the steering committee: build a bar chart with Project[Project] on the Y-axis and [Budget Used] on the X-axis.
Project 7 rows, 7 columns
| ProjectID | Project | Division | Manager | StartDate | EndDate | Budget |
|---|---|---|---|---|---|---|
| 1 | Website relaunch | Marketing | Emma Clarke | 3 Mar 2025 | 31 Oct 2025 | 157000 |
| 2 | ERP rollout | IT | Tom Walker | 5 May 2025 | 26 Jun 2026 | 341000 |
| 3 | Warehouse redesign | Operations | Emma Clarke | 1 Sep 2025 | 24 Apr 2026 | 147000 |
| 4 | Customer portal | IT | Tom Walker | 12 Jan 2026 | 18 Dec 2026 | 267000 |
| 5 | Trade show 2026 | Marketing | Emma Clarke | 2 Feb 2026 | 25 Sep 2026 | 145000 |
| 6 | Warehouse scanners | Operations | Tom Walker | 4 May 2026 | 26 Feb 2027 | 203000 |
| 7 | Data center move | IT | Emma Clarke | 1 Feb 2027 | 24 Sep 2027 | 164000 |
Measures: [Budget Used]
Task 52 rows, 7 columns
| TaskID | ProjectID | Task | StartDate | DueDate | FinishDate | PlannedHours |
|---|---|---|---|---|---|---|
| 1 | 1 | Project management | 3 Mar 2025 | 31 Oct 2025 | 12 Nov 2025 | 385 |
| 2 | 1 | Briefing | 3 Mar 2025 | 9 May 2025 | 2 May 2025 | 130 |
| 3 | 1 | Campaign concept | 7 Apr 2025 | 6 Jun 2025 | 13 Jun 2025 | 333 |
| 4 | 1 | Visual design | 12 May 2025 | 11 Jul 2025 | 4 Jul 2025 | 504 |
| 5 | 1 | Copywriting | 16 Jun 2025 | 15 Aug 2025 | 12 Aug 2025 | 288 |
| 6 | 1 | Production | 14 Jul 2025 | 19 Sep 2025 | 16 Sep 2025 | 510 |
| 7 | 1 | Launch | 18 Aug 2025 | 24 Oct 2025 | 21 Oct 2025 | 220 |
| 8 | 2 | Project management | 5 May 2025 | 26 Jun 2026 | 22 Jun 2026 | 720 |
| 9 | 2 | Requirements | 5 May 2025 | 8 Aug 2025 | 8 Aug 2025 | 504 |
| 10 | 2 | Design concept | 23 Jun 2025 | 26 Sep 2025 | 19 Sep 2025 | 322 |
| 11 | 2 | Build phase 1 | 11 Aug 2025 | 14 Nov 2025 | 20 Nov 2025 | 650 |
| 12 | 2 | Build phase 2 | 6 Oct 2025 | 2 Jan 2026 | 6 Jan 2026 | 650 |
Showing the first 12 of 52 rows.
Timesheet 673 rows, 5 columns
| EntryID | Date | TaskID | ResourceID | Hours |
|---|---|---|---|---|
| 1 | 7 Mar 2025 | 1 | 1 | 13 |
| 2 | 7 Mar 2025 | 2 | 2 | 13.5 |
| 3 | 14 Mar 2025 | 1 | 1 | 10 |
| 4 | 14 Mar 2025 | 2 | 2 | 15.5 |
| 5 | 21 Mar 2025 | 1 | 1 | 10 |
| 6 | 21 Mar 2025 | 2 | 2 | 12.5 |
| 7 | 28 Mar 2025 | 1 | 1 | 12.5 |
| 8 | 28 Mar 2025 | 2 | 2 | 14 |
| 9 | 4 Apr 2025 | 1 | 1 | 12.5 |
| 10 | 4 Apr 2025 | 2 | 2 | 14 |
| 11 | 11 Apr 2025 | 1 | 1 | 14 |
| 12 | 11 Apr 2025 | 2 | 2 | 15 |
Showing the first 12 of 673 rows.
Measures: [Actual Hours], [Actual Cost]
Resource 10 rows, 5 columns
| ResourceID | Name | Role | HourlyRate | DailyHours |
|---|---|---|---|---|
| 1 | Emma Clarke | Project manager | 95 | 8 |
| 2 | Tom Walker | Project manager | 95 | 8 |
| 3 | Lucy Evans | Developer | 85 | 8 |
| 4 | Ravi Patel | Logistics planner | 75 | 8 |
| 5 | Mia Lang | Developer | 80 | 6 |
| 6 | Sam Kerr | Consultant | 110 | 8 |
| 7 | Grace Ross | Designer | 75 | 8 |
| 8 | Ben Hughes | Logistics planner | 70 | 8 |
| 9 | Olivia Turner | Marketing | 70 | 6 |
| 10 | Jack Brooks | Purchasing | 65 | 8 |
Date 730 rows, 4 columns
| Date | Year | Month | MonthName |
|---|---|---|---|
| 1 Jan 2025 | 2025 | 1 | Jan |
| 2 Jan 2025 | 2025 | 1 | Jan |
| 3 Jan 2025 | 2025 | 1 | Jan |
| 4 Jan 2025 | 2025 | 1 | Jan |
| 5 Jan 2025 | 2025 | 1 | Jan |
| 6 Jan 2025 | 2025 | 1 | Jan |
| 7 Jan 2025 | 2025 | 1 | Jan |
| 8 Jan 2025 | 2025 | 1 | Jan |
| 9 Jan 2025 | 2025 | 1 | Jan |
| 10 Jan 2025 | 2025 | 1 | Jan |
| 11 Jan 2025 | 2025 | 1 | Jan |
| 12 Jan 2025 | 2025 | 1 | Jan |
Showing the first 12 of 730 rows.
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The lesson on creating a visual shows how to build a visual from the data list. For the steering committee the chart often matters more than the table: an overspent budget stands out at once. In Power BI Desktop you add a constant line at 1, that is 100%, in the Analytics pane.
Common mistakes
Hours times an average rate
SUM(Timesheet[Hours]) * AVERAGE(Resource[HourlyRate]) is only right if everyone books the same amount. If the consultant with the highest rate books more than purchasing with the lowest, the cost comes out too low.
Budget and cost swapped
DIVIDE(SUM(Project[Budget]), [Actual Cost]) gives 92.0% instead of 108.6% for the warehouse redesign and hides exactly the overspend the report should show.
In real Power BI
- Hourly rates change. If that matters, the rate goes into a table of its own with a validity period, or the time tracking system delivers the rate with each entry.
- Non-labor costs such as licenses or contractors usually come from accounting: a second fact table with project and date, and a measure that adds up both kinds of cost.
- You practice a project budget with formulas in Excel in the case project budget of the Excel course.
Check your result
- Task 1: The ERP rollout has an actual cost of 323,667.50, the warehouse redesign 159,715, and the total is 1,204,585.
- Task 2: The warehouse redesign is over budget at 108.6%, the customer portal at 85.2%, and the total is 84.6%.
- Task 3: The warehouse redesign is at the top with 108.6%, the customer portal at the bottom with 85.2%. The data center move is missing because it has no cost yet.
Back to case 2 or the course overview.