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
ProjectIDProjectDivisionManagerStartDateEndDateBudget
1Website relaunchMarketingEmma Clarke3 Mar 202531 Oct 2025157000
2ERP rolloutITTom Walker5 May 202526 Jun 2026341000
3Warehouse redesignOperationsEmma Clarke1 Sep 202524 Apr 2026147000
4Customer portalITTom Walker12 Jan 202618 Dec 2026267000
5Trade show 2026MarketingEmma Clarke2 Feb 202625 Sep 2026145000
6Warehouse scannersOperationsTom Walker4 May 202626 Feb 2027203000
7Data center moveITEmma Clarke1 Feb 202724 Sep 2027164000
Task 52 rows, 7 columns
TaskIDProjectIDTaskStartDateDueDateFinishDatePlannedHours
11Project management3 Mar 202531 Oct 202512 Nov 2025385
21Briefing3 Mar 20259 May 20252 May 2025130
31Campaign concept7 Apr 20256 Jun 202513 Jun 2025333
41Visual design12 May 202511 Jul 20254 Jul 2025504
51Copywriting16 Jun 202515 Aug 202512 Aug 2025288
61Production14 Jul 202519 Sep 202516 Sep 2025510
71Launch18 Aug 202524 Oct 202521 Oct 2025220
82Project management5 May 202526 Jun 202622 Jun 2026720
92Requirements5 May 20258 Aug 20258 Aug 2025504
102Design concept23 Jun 202526 Sep 202519 Sep 2025322
112Build phase 111 Aug 202514 Nov 202520 Nov 2025650
122Build phase 26 Oct 20252 Jan 20266 Jan 2026650

Showing the first 12 of 52 rows.

Timesheet 673 rows, 5 columns
EntryIDDateTaskIDResourceIDHours
17 Mar 20251113
27 Mar 20252213.5
314 Mar 20251110
414 Mar 20252215.5
521 Mar 20251110
621 Mar 20252212.5
728 Mar 20251112.5
828 Mar 20252214
94 Apr 20251112.5
104 Apr 20252214
1111 Apr 20251114
1211 Apr 20252215

Showing the first 12 of 673 rows.

Measures: [Actual Hours]

Resource 10 rows, 5 columns
ResourceIDNameRoleHourlyRateDailyHours
1Emma ClarkeProject manager958
2Tom WalkerProject manager958
3Lucy EvansDeveloper858
4Ravi PatelLogistics planner758
5Mia LangDeveloper806
6Sam KerrConsultant1108
7Grace RossDesigner758
8Ben HughesLogistics planner708
9Olivia TurnerMarketing706
10Jack BrooksPurchasing658
Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

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
ProjectIDProjectDivisionManagerStartDateEndDateBudget
1Website relaunchMarketingEmma Clarke3 Mar 202531 Oct 2025157000
2ERP rolloutITTom Walker5 May 202526 Jun 2026341000
3Warehouse redesignOperationsEmma Clarke1 Sep 202524 Apr 2026147000
4Customer portalITTom Walker12 Jan 202618 Dec 2026267000
5Trade show 2026MarketingEmma Clarke2 Feb 202625 Sep 2026145000
6Warehouse scannersOperationsTom Walker4 May 202626 Feb 2027203000
7Data center moveITEmma Clarke1 Feb 202724 Sep 2027164000
Task 52 rows, 7 columns
TaskIDProjectIDTaskStartDateDueDateFinishDatePlannedHours
11Project management3 Mar 202531 Oct 202512 Nov 2025385
21Briefing3 Mar 20259 May 20252 May 2025130
31Campaign concept7 Apr 20256 Jun 202513 Jun 2025333
41Visual design12 May 202511 Jul 20254 Jul 2025504
51Copywriting16 Jun 202515 Aug 202512 Aug 2025288
61Production14 Jul 202519 Sep 202516 Sep 2025510
71Launch18 Aug 202524 Oct 202521 Oct 2025220
82Project management5 May 202526 Jun 202622 Jun 2026720
92Requirements5 May 20258 Aug 20258 Aug 2025504
102Design concept23 Jun 202526 Sep 202519 Sep 2025322
112Build phase 111 Aug 202514 Nov 202520 Nov 2025650
122Build phase 26 Oct 20252 Jan 20266 Jan 2026650

Showing the first 12 of 52 rows.

Timesheet 673 rows, 5 columns
EntryIDDateTaskIDResourceIDHours
17 Mar 20251113
27 Mar 20252213.5
314 Mar 20251110
414 Mar 20252215.5
521 Mar 20251110
621 Mar 20252212.5
728 Mar 20251112.5
828 Mar 20252214
94 Apr 20251112.5
104 Apr 20252214
1111 Apr 20251114
1211 Apr 20252215

Showing the first 12 of 673 rows.

Measures: [Actual Hours], [Actual Cost]

Resource 10 rows, 5 columns
ResourceIDNameRoleHourlyRateDailyHours
1Emma ClarkeProject manager958
2Tom WalkerProject manager958
3Lucy EvansDeveloper858
4Ravi PatelLogistics planner758
5Mia LangDeveloper806
6Sam KerrConsultant1108
7Grace RossDesigner758
8Ben HughesLogistics planner708
9Olivia TurnerMarketing706
10Jack BrooksPurchasing658
Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

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
ProjectIDProjectDivisionManagerStartDateEndDateBudget
1Website relaunchMarketingEmma Clarke3 Mar 202531 Oct 2025157000
2ERP rolloutITTom Walker5 May 202526 Jun 2026341000
3Warehouse redesignOperationsEmma Clarke1 Sep 202524 Apr 2026147000
4Customer portalITTom Walker12 Jan 202618 Dec 2026267000
5Trade show 2026MarketingEmma Clarke2 Feb 202625 Sep 2026145000
6Warehouse scannersOperationsTom Walker4 May 202626 Feb 2027203000
7Data center moveITEmma Clarke1 Feb 202724 Sep 2027164000

Measures: [Budget Used]

Task 52 rows, 7 columns
TaskIDProjectIDTaskStartDateDueDateFinishDatePlannedHours
11Project management3 Mar 202531 Oct 202512 Nov 2025385
21Briefing3 Mar 20259 May 20252 May 2025130
31Campaign concept7 Apr 20256 Jun 202513 Jun 2025333
41Visual design12 May 202511 Jul 20254 Jul 2025504
51Copywriting16 Jun 202515 Aug 202512 Aug 2025288
61Production14 Jul 202519 Sep 202516 Sep 2025510
71Launch18 Aug 202524 Oct 202521 Oct 2025220
82Project management5 May 202526 Jun 202622 Jun 2026720
92Requirements5 May 20258 Aug 20258 Aug 2025504
102Design concept23 Jun 202526 Sep 202519 Sep 2025322
112Build phase 111 Aug 202514 Nov 202520 Nov 2025650
122Build phase 26 Oct 20252 Jan 20266 Jan 2026650

Showing the first 12 of 52 rows.

Timesheet 673 rows, 5 columns
EntryIDDateTaskIDResourceIDHours
17 Mar 20251113
27 Mar 20252213.5
314 Mar 20251110
414 Mar 20252215.5
521 Mar 20251110
621 Mar 20252212.5
728 Mar 20251112.5
828 Mar 20252214
94 Apr 20251112.5
104 Apr 20252214
1111 Apr 20251114
1211 Apr 20252215

Showing the first 12 of 673 rows.

Measures: [Actual Hours], [Actual Cost]

Resource 10 rows, 5 columns
ResourceIDNameRoleHourlyRateDailyHours
1Emma ClarkeProject manager958
2Tom WalkerProject manager958
3Lucy EvansDeveloper858
4Ravi PatelLogistics planner758
5Mia LangDeveloper806
6Sam KerrConsultant1108
7Grace RossDesigner758
8Ben HughesLogistics planner708
9Olivia TurnerMarketing706
10Jack BrooksPurchasing658
Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

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.

Next: case 4, utilization

Capacity from working days and daily hours, and the utilization of every person.

Go to case 4

Back to case 2 or the course overview.

Write to us

Choose language

Select your preferred language