Adds Onboarding MRR

This commit is contained in:
uri 2025-02-25 11:33:37 +01:00
parent a6671ee4d0
commit dab210c607
3 changed files with 55 additions and 2 deletions

View file

@ -159,6 +159,16 @@
"previous_YTD": "previous_ytd_total_revenue_churn_rate", "previous_YTD": "previous_ytd_total_revenue_churn_rate",
"requires_invoicing_data": false, "requires_invoicing_data": false,
}, },
{
"id_metric": 17,
"name": "Onboarding MRR",
"current_month_MTD": "current_month_mtd_onboarding_mrr",
"previous_month_EOM": "previous_month_eom_onboarding_mrr",
"previous_year_MTD": "previous_year_mtd_onboarding_mrr",
"current_YTD": "current_ytd_onboarding_mrr",
"previous_YTD": "previous_ytd_onboarding_mrr",
"requires_invoicing_data": false,
},
] %} ] %}
with with
int_ytd_mtd_main_metrics_overview as ( int_ytd_mtd_main_metrics_overview as (

View file

@ -40,6 +40,7 @@ with
as current_month_mtd_total_revenue_churn_12m, as current_month_mtd_total_revenue_churn_12m,
total_revenue_global_preceding_12_months total_revenue_global_preceding_12_months
as current_month_mtd_total_revenue_global_12m, as current_month_mtd_total_revenue_global_12m,
expected_mrr as current_month_mtd_onboarding_mrr,
-- Previous Year (12 months ago), Month To Date Metrics -- -- Previous Year (12 months ago), Month To Date Metrics --
previous_year_total_revenue_in_gbp previous_year_total_revenue_in_gbp
@ -66,6 +67,7 @@ with
as previous_year_mtd_total_revenue_churn_12m, as previous_year_mtd_total_revenue_churn_12m,
previous_year_total_revenue_global_preceding_12_months previous_year_total_revenue_global_preceding_12_months
as previous_year_mtd_total_revenue_global_12m, as previous_year_mtd_total_revenue_global_12m,
previous_year_expected_mrr as previous_year_mtd_onboarding_mrr,
-- Previous Month, End Of Month Metrics -- -- Previous Month, End Of Month Metrics --
lag(total_revenue_in_gbp) over ( lag(total_revenue_in_gbp) over (
@ -109,7 +111,10 @@ with
) as previous_month_eom_total_revenue_churn_12m, ) as previous_month_eom_total_revenue_churn_12m,
lag(total_revenue_global_preceding_12_months) over ( lag(total_revenue_global_preceding_12_months) over (
partition by dimension, dimension_value order by date partition by dimension, dimension_value order by date
) as previous_month_eom_total_revenue_global_12m ) as previous_month_eom_total_revenue_global_12m,
lag(expected_mrr) over (
partition by dimension, dimension_value order by date
) as previous_month_eom_onboarding_mrr
from int_mtd_vs_previous_year_metrics from int_mtd_vs_previous_year_metrics
where where
@ -188,6 +193,11 @@ with
order by date order by date
rows between unbounded preceding and current row rows between unbounded preceding and current row
) as current_ytd_total_revenue_global_12m, ) as current_ytd_total_revenue_global_12m,
sum(current_month_mtd_onboarding_mrr) over (
partition by financial_year, dimension, dimension_value
order by date
rows between unbounded preceding and current row
) as current_ytd_onboarding_mrr,
-- Specific treatment for live_deals as it is a counter -- Specific treatment for live_deals as it is a counter
current_month_mtd_live_deals as current_ytd_live_deals, current_month_mtd_live_deals as current_ytd_live_deals,
@ -257,6 +267,11 @@ with
order by date order by date
rows between unbounded preceding and current row rows between unbounded preceding and current row
) as previous_ytd_total_revenue_global_12m, ) as previous_ytd_total_revenue_global_12m,
sum(previous_year_mtd_onboarding_mrr) over (
partition by financial_year, dimension, dimension_value
order by date
rows between unbounded preceding and current row
) as previous_ytd_onboarding_mrr,
-- Specific treatment for live_deals as it is a counter -- Specific treatment for live_deals as it is a counter
previous_year_mtd_live_deals as previous_ytd_live_deals previous_year_mtd_live_deals as previous_ytd_live_deals

View file

@ -1989,6 +1989,11 @@ models:
description: | description: |
Total revenue churn rate for the current month MTD. 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 - name: previous_year_mtd_billable_bookings
data_type: integer data_type: integer
description: | description: |
@ -2099,6 +2104,12 @@ models:
Total revenue churn rate for the previous year Total revenue churn rate for the previous year
(12 months ago) MTD. (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 - name: current_ytd_billable_bookings
data_type: integer data_type: integer
description: | description: |
@ -2207,6 +2218,11 @@ models:
description: | description: |
Total revenue churn rate for the current financial year YTD. 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 - name: previous_ytd_billable_bookings
data_type: integer data_type: integer
description: | description: |
@ -2316,6 +2332,12 @@ models:
Total revenue churn rate for the previous Total revenue churn rate for the previous
financial year YTD. 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 - name: previous_month_eom_billable_bookings
data_type: integer data_type: integer
description: | description: |
@ -2421,7 +2443,7 @@ models:
- name: previous_month_eom_total_revenue_global_12m - name: previous_month_eom_total_revenue_global_12m
data_type: numeric data_type: numeric
description: | description: |
Total revenue generated globally in the last 12 months Total revenue generated globally in the last 12 months
for the previous month, at the end of the month. for the previous month, at the end of the month.
This is only used to compute the churn rate. This is only used to compute the churn rate.
@ -2432,6 +2454,12 @@ models:
Total revenue churn rate for the previous month, Total revenue churn rate for the previous month,
at the end of the 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 - name: int_ytd_mtd_aggregated_main_metrics_overview
description: | description: |
This model provides a high-level overview of the main metrics for the month-to-date This model provides a high-level overview of the main metrics for the month-to-date