Merged PR 4504: Onboarding MRR + Visualisation changes

# Description

Changes:
* Adds Onboarding MRR
* Refactors exclusion code for ongoing month / invoicing cycle
* Adds sign format on relative differences

# 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-25 14:05:54 +00:00
parent 995027205c
commit 3c99c4f8bc
5 changed files with 249 additions and 61 deletions

View file

@ -1989,6 +1989,11 @@ models:
description: |
Total revenue churn rate for the current month MTD.
- name: current_month_mtd_onboarding_mrr
data_type: numeric
description: |
Total expected Onboarding MRR for the current month MTD.
- name: previous_year_mtd_billable_bookings
data_type: integer
description: |
@ -2099,6 +2104,12 @@ models:
Total revenue churn rate for the previous year
(12 months ago) MTD.
- name: previous_year_mtd_onboarding_mrr
data_type: numeric
description: |
Total expected Onboarding MRR for the previous year
(12 months ago) MTD.
- name: current_ytd_billable_bookings
data_type: integer
description: |
@ -2207,6 +2218,11 @@ models:
description: |
Total revenue churn rate for the current financial year YTD.
- name: current_ytd_onboarding_mrr
data_type: numeric
description: |
Total expected Onboarding MRR for the current financial year YTD.
- name: previous_ytd_billable_bookings
data_type: integer
description: |
@ -2316,6 +2332,12 @@ models:
Total revenue churn rate for the previous
financial year YTD.
- name: previous_ytd_onboarding_mrr
data_type: numeric
description: |
Total expected Onboarding MRR for the previous
financial year YTD.
- name: previous_month_eom_billable_bookings
data_type: integer
description: |
@ -2421,7 +2443,7 @@ models:
- name: previous_month_eom_total_revenue_global_12m
data_type: numeric
description: |
description: |
Total revenue generated globally in the last 12 months
for the previous month, at the end of the month.
This is only used to compute the churn rate.
@ -2432,6 +2454,12 @@ models:
Total revenue churn rate for the previous month,
at the end of the month.
- name: previous_month_eom_onboarding_mrr
data_type: numeric
description: |
Total expected Onboarding MRR for the previous month,
at the end of the month.
- name: int_ytd_mtd_aggregated_main_metrics_overview
description: |
This model provides a high-level overview of the main metrics for the month-to-date
@ -2510,13 +2538,19 @@ models:
data_tests:
- not_null
- name: requires_invoicing_data
data_type: boolean
- name: display_exclusion
data_type: string
description: |
Flag to indicate if the metric requires invoicing data to be calculated.
Category to indicate if the metric requires a certain exclusion due
to relying on not timely information.
This will limit the display for reporting purposes.
data_tests:
- not_null
- accepted_values:
values:
- NONE
- INVOICING
- ONGOING_MONTH
- name: current_month_mtd
data_type: numeric
@ -2630,3 +2664,38 @@ models:
description: |
Achievement rate between the current year YTD and the EOFY target. It can be null
if the target is not available.
- name: rel_diff_with_sign_current_month_mtd_vs_previous_month_eom
data_type: numeric
description: |
Relative difference between the current month MTD and the previous month EOM,
with a sign to represent if the relative difference is good (positive) or bad
(negative) for our business.
- name: rel_diff_with_sign_current_month_mtd_vs_previous_year_mtd
data_type: numeric
description: |
Relative difference between the current month MTD and the previous year MTD,
with a sign to represent if the relative difference is good (positive) or bad
(negative) for our business.
- name: rel_diff_with_sign_current_ytd_vs_previous_ytd
data_type: numeric
description: |
Relative difference between the current year YTD and the previous year YTD,
with a sign to represent if the relative difference is good (positive) or bad
(negative) for our business.
- name: rel_diff_with_sign_current_month_mtd_vs_eom_target
data_type: numeric
description: |
Relative difference between the current month MTD and the EOM target,
with a sign to represent if the relative difference is good (positive) or bad
(negative) for our business.
- name: rel_diff_with_sign_current_ytd_vs_ytd_target
data_type: numeric
description: |
Relative difference between the current year YTD and the YTD target,
with a sign to represent if the relative difference is good (positive) or bad
(negative) for our business.