Merged PR 4483: Adding targets (to be revised). Allows multi-year last-date computation

# Description

Changes:
* Adds template for targets -> These need to be revised
* Adds comparison of values vs. targets
* Allows for multi-year last date computation (allowing multiple years to be selected, not just the last one)

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #27609, #27805
This commit is contained in:
Oriol Roqué Paniagua 2025-02-24 10:39:45 +00:00
parent cbed87404e
commit 85c2c73da7
6 changed files with 332 additions and 40 deletions

View file

@ -0,0 +1,76 @@
id_metric,metric_name,target_date,target_eom_value,target_ytd_value,target_eofy_value
1,Total Revenue,2025-01-31,600000,4510000,5700000
1,Total Revenue,2025-02-28,520000,5030000,5700000
1,Total Revenue,2025-03-31,670000,5700000,5700000
1,Total Revenue,2025-04-30,501094,501094,9000000
1,Total Revenue,2025-05-31,565137,1066231,9000000
1,Total Revenue,2025-06-30,626024,1692255,9000000
1,Total Revenue,2025-07-31,748998,2441252,9000000
1,Total Revenue,2025-08-31,779353,3220605,9000000
1,Total Revenue,2025-09-30,665206,3885811,9000000
1,Total Revenue,2025-10-31,728266,4614078,9000000
1,Total Revenue,2025-11-30,664032,5278109,9000000
1,Total Revenue,2025-12-31,766894,6045003,9000000
1,Total Revenue,2026-01-31,862453,6907456,9000000
1,Total Revenue,2026-02-28,943922,7851378,9000000
1,Total Revenue,2026-03-31,1148622,9000000,9000000
2,Revenue Retained Post-Resolutions,2025-01-31,350000,2210000,2800000
2,Revenue Retained Post-Resolutions,2025-02-28,257815,2467815,2800000
2,Revenue Retained Post-Resolutions,2025-03-31,332185,2800000,2800000
2,Revenue Retained Post-Resolutions,2025-04-30,249512,249512,3800000
2,Revenue Retained Post-Resolutions,2025-05-31,264000,513512,3800000
2,Revenue Retained Post-Resolutions,2025-06-30,293928,807440,3800000
2,Revenue Retained Post-Resolutions,2025-07-31,311830,1119270,3800000
2,Revenue Retained Post-Resolutions,2025-08-31,359278,1478547,3800000
2,Revenue Retained Post-Resolutions,2025-09-30,275513,1754060,3800000
2,Revenue Retained Post-Resolutions,2025-10-31,301654,2055714,3800000
2,Revenue Retained Post-Resolutions,2025-11-30,254674,2310388,3800000
2,Revenue Retained Post-Resolutions,2025-12-31,324301,2634689,3800000
2,Revenue Retained Post-Resolutions,2026-01-31,354507,2989197,3800000
2,Revenue Retained Post-Resolutions,2026-02-28,367995,3357192,3800000
2,Revenue Retained Post-Resolutions,2026-03-31,442809,3800000,3800000
6,Billable Bookings,2025-01-31,26756,226841,308000
6,Billable Bookings,2025-02-28,36445,263285,308000
6,Billable Bookings,2025-03-31,44715,308000,308000
6,Billable Bookings,2025-04-30,19096,19096,450000
6,Billable Bookings,2025-05-31,20558,39654,450000
6,Billable Bookings,2025-06-30,21879,61533,450000
6,Billable Bookings,2025-07-31,44239,105771,450000
6,Billable Bookings,2025-08-31,43567,149338,450000
6,Billable Bookings,2025-09-30,36885,186223,450000
6,Billable Bookings,2025-10-31,37935,224158,450000
6,Billable Bookings,2025-11-30,35388,259546,450000
6,Billable Bookings,2025-12-31,36991,296537,450000
6,Billable Bookings,2026-01-31,39541,336078,450000
6,Billable Bookings,2026-02-28,50904,386982,450000
6,Billable Bookings,2026-03-31,63018,450000,450000
10,Damage Waiver Payout Rate,2025-01-31,0.65,0.65,0.65
10,Damage Waiver Payout Rate,2025-02-28,0.65,0.65,0.65
10,Damage Waiver Payout Rate,2025-03-31,0.65,0.65,0.65
10,Damage Waiver Payout Rate,2025-04-30,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-05-31,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-06-30,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-07-31,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-08-31,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-09-30,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-10-31,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-11-30,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2025-12-31,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2026-01-31,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2026-02-28,0.58,0.58,0.58
10,Damage Waiver Payout Rate,2026-03-31,0.58,0.58,0.58
11,Host Resolutions Payout Rate,2025-01-31,0.11,0.11,0.11
11,Host Resolutions Payout Rate,2025-02-28,0.11,0.11,0.11
11,Host Resolutions Payout Rate,2025-03-31,0.11,0.11,0.11
11,Host Resolutions Payout Rate,2025-04-30,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-05-31,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-06-30,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-07-31,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-08-31,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-09-30,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-10-31,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-11-30,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2025-12-31,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2026-01-31,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2026-02-28,0.10,0.10,0.10
11,Host Resolutions Payout Rate,2026-03-31,0.10,0.10,0.10
1 id_metric metric_name target_date target_eom_value target_ytd_value target_eofy_value
2 1 Total Revenue 2025-01-31 600000 4510000 5700000
3 1 Total Revenue 2025-02-28 520000 5030000 5700000
4 1 Total Revenue 2025-03-31 670000 5700000 5700000
5 1 Total Revenue 2025-04-30 501094 501094 9000000
6 1 Total Revenue 2025-05-31 565137 1066231 9000000
7 1 Total Revenue 2025-06-30 626024 1692255 9000000
8 1 Total Revenue 2025-07-31 748998 2441252 9000000
9 1 Total Revenue 2025-08-31 779353 3220605 9000000
10 1 Total Revenue 2025-09-30 665206 3885811 9000000
11 1 Total Revenue 2025-10-31 728266 4614078 9000000
12 1 Total Revenue 2025-11-30 664032 5278109 9000000
13 1 Total Revenue 2025-12-31 766894 6045003 9000000
14 1 Total Revenue 2026-01-31 862453 6907456 9000000
15 1 Total Revenue 2026-02-28 943922 7851378 9000000
16 1 Total Revenue 2026-03-31 1148622 9000000 9000000
17 2 Revenue Retained Post-Resolutions 2025-01-31 350000 2210000 2800000
18 2 Revenue Retained Post-Resolutions 2025-02-28 257815 2467815 2800000
19 2 Revenue Retained Post-Resolutions 2025-03-31 332185 2800000 2800000
20 2 Revenue Retained Post-Resolutions 2025-04-30 249512 249512 3800000
21 2 Revenue Retained Post-Resolutions 2025-05-31 264000 513512 3800000
22 2 Revenue Retained Post-Resolutions 2025-06-30 293928 807440 3800000
23 2 Revenue Retained Post-Resolutions 2025-07-31 311830 1119270 3800000
24 2 Revenue Retained Post-Resolutions 2025-08-31 359278 1478547 3800000
25 2 Revenue Retained Post-Resolutions 2025-09-30 275513 1754060 3800000
26 2 Revenue Retained Post-Resolutions 2025-10-31 301654 2055714 3800000
27 2 Revenue Retained Post-Resolutions 2025-11-30 254674 2310388 3800000
28 2 Revenue Retained Post-Resolutions 2025-12-31 324301 2634689 3800000
29 2 Revenue Retained Post-Resolutions 2026-01-31 354507 2989197 3800000
30 2 Revenue Retained Post-Resolutions 2026-02-28 367995 3357192 3800000
31 2 Revenue Retained Post-Resolutions 2026-03-31 442809 3800000 3800000
32 6 Billable Bookings 2025-01-31 26756 226841 308000
33 6 Billable Bookings 2025-02-28 36445 263285 308000
34 6 Billable Bookings 2025-03-31 44715 308000 308000
35 6 Billable Bookings 2025-04-30 19096 19096 450000
36 6 Billable Bookings 2025-05-31 20558 39654 450000
37 6 Billable Bookings 2025-06-30 21879 61533 450000
38 6 Billable Bookings 2025-07-31 44239 105771 450000
39 6 Billable Bookings 2025-08-31 43567 149338 450000
40 6 Billable Bookings 2025-09-30 36885 186223 450000
41 6 Billable Bookings 2025-10-31 37935 224158 450000
42 6 Billable Bookings 2025-11-30 35388 259546 450000
43 6 Billable Bookings 2025-12-31 36991 296537 450000
44 6 Billable Bookings 2026-01-31 39541 336078 450000
45 6 Billable Bookings 2026-02-28 50904 386982 450000
46 6 Billable Bookings 2026-03-31 63018 450000 450000
47 10 Damage Waiver Payout Rate 2025-01-31 0.65 0.65 0.65
48 10 Damage Waiver Payout Rate 2025-02-28 0.65 0.65 0.65
49 10 Damage Waiver Payout Rate 2025-03-31 0.65 0.65 0.65
50 10 Damage Waiver Payout Rate 2025-04-30 0.58 0.58 0.58
51 10 Damage Waiver Payout Rate 2025-05-31 0.58 0.58 0.58
52 10 Damage Waiver Payout Rate 2025-06-30 0.58 0.58 0.58
53 10 Damage Waiver Payout Rate 2025-07-31 0.58 0.58 0.58
54 10 Damage Waiver Payout Rate 2025-08-31 0.58 0.58 0.58
55 10 Damage Waiver Payout Rate 2025-09-30 0.58 0.58 0.58
56 10 Damage Waiver Payout Rate 2025-10-31 0.58 0.58 0.58
57 10 Damage Waiver Payout Rate 2025-11-30 0.58 0.58 0.58
58 10 Damage Waiver Payout Rate 2025-12-31 0.58 0.58 0.58
59 10 Damage Waiver Payout Rate 2026-01-31 0.58 0.58 0.58
60 10 Damage Waiver Payout Rate 2026-02-28 0.58 0.58 0.58
61 10 Damage Waiver Payout Rate 2026-03-31 0.58 0.58 0.58
62 11 Host Resolutions Payout Rate 2025-01-31 0.11 0.11 0.11
63 11 Host Resolutions Payout Rate 2025-02-28 0.11 0.11 0.11
64 11 Host Resolutions Payout Rate 2025-03-31 0.11 0.11 0.11
65 11 Host Resolutions Payout Rate 2025-04-30 0.10 0.10 0.10
66 11 Host Resolutions Payout Rate 2025-05-31 0.10 0.10 0.10
67 11 Host Resolutions Payout Rate 2025-06-30 0.10 0.10 0.10
68 11 Host Resolutions Payout Rate 2025-07-31 0.10 0.10 0.10
69 11 Host Resolutions Payout Rate 2025-08-31 0.10 0.10 0.10
70 11 Host Resolutions Payout Rate 2025-09-30 0.10 0.10 0.10
71 11 Host Resolutions Payout Rate 2025-10-31 0.10 0.10 0.10
72 11 Host Resolutions Payout Rate 2025-11-30 0.10 0.10 0.10
73 11 Host Resolutions Payout Rate 2025-12-31 0.10 0.10 0.10
74 11 Host Resolutions Payout Rate 2026-01-31 0.10 0.10 0.10
75 11 Host Resolutions Payout Rate 2026-02-28 0.10 0.10 0.10
76 11 Host Resolutions Payout Rate 2026-03-31 0.10 0.10 0.10