Case 2: due dates, delays and on-time rate

Are we on schedule? You calculate the delay of every task, count the overdue tasks at the end of every month and compare the on-time rate of the projects.

In short: DATEDIFF(Task[DueDate], Task[FinishDate], DAY) is the delay in days. A task is overdue at the cutoff MAX('Date'[Date]) if it was due by then and not finished yet. For the on-time rate, NOT ISBLANK(Task[FinishDate]) belongs in every condition.

Task 1: delay per task

Task Create the calculated column "Delay" in Task: the days from DueDate to FinishDate, using DATEDIFF. Tasks finished before the due date get a negative number.

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.

The delay belongs to each task and does not depend on the filter, so it is a calculated column. With it you can sort tasks by delay or put them into groups.

Task 2: overdue tasks at month end

Task How many tasks were overdue at the end of each month? Create the measure "Overdue Tasks": all tasks that were due by the cutoff (DueDate on or before the cutoff) and not finished yet (FinishDate blank or after the cutoff). The cutoff is the last day of the period; store it in a variable.

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.

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 pattern is the same as for headcount at a cutoff date: the tasks are not related to the date table, and the measure takes the cutoff from the filter. The lesson on variables explains how VAR works.

Task 3: on-time rate

Task Create the measure "On-time Rate": the share of finished tasks that were done by their due date (FinishDate on or before DueDate) among all finished tasks, using DIVIDE. Open tasks count neither in the numerator nor in the denominator.

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.

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 on-time rate is a share, like the rates in the earlier cases. What matters is that numerator and denominator look at the same tasks: only the finished ones.

Common mistakes

A blank date in a comparison

Without NOT ISBLANK in the numerator every open task counts as on time, because a blank date is smaller than any other date in a comparison. The warehouse scanners would then show 100% instead of 25%: the three open tasks land in the numerator but not in the denominator.

Overdue only when FinishDate is blank

Checking only ISBLANK(Task[FinishDate]) shows only today's status. A task due in March and finished in May was overdue at the end of March and of April. The condition Task[FinishDate] > Cutoff brings it back.

Start and end swapped

DATEDIFF(Task[FinishDate], Task[DueDate], DAY) flips the sign: late tasks then show up as negative.

In real Power BI

  • Delays in working days instead of calendar days need a working-day column in the date table and a count of the days in between.
  • For milestones, milestone trend analysis is common: how has the planned date moved from report to report? That needs one date per reporting snapshot. In Excel you practice it in the case milestone trend analysis.

Check your result

  • Task 1: Project management for the website relaunch was due on 31 Oct 2025 and finished on 12 Nov 2025, delay 12. The briefing was due on 9 May 2025 and finished on 2 May 2025 already, delay -7.
  • Task 2: In 2026, 2 tasks each were overdue at the end of February, April and September, and 1 each at the end of June, November and December. In the other months nothing was overdue.
  • Task 3: The website relaunch has the best on-time rate with 71.4%, the warehouse scanners the worst with 25%, and the total is 50%.

Next: case 3, project budget

Actual cost from hours times hourly rate, budget used and a chart for the steering committee.

Go to case 3

Back to case 1 or the course overview.

Write to us

Choose language

Select your preferred language