diff --git a/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql b/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql index 9517fa3..765bd7c 100644 --- a/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql +++ b/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql @@ -357,7 +357,10 @@ with + coalesce(invoiced_revenue.xero_waiver_paid_back_to_host_in_gbp, 0) + coalesce(host_resolutions.xero_host_resolution_amount_paid_in_gbp, 0), 0 - ) as revenue_retained_post_resolutions_in_gbp + ) as revenue_retained_post_resolutions_in_gbp, + + -- ONBOARDING MRR METRIC -- + onboarding_mrr.expected_mrr as expected_mrr from int_kpis__agg_dates_main_kpis d left join @@ -430,6 +433,11 @@ with on d.date = churn.date and d.dimension = churn.dimension and d.dimension_value = churn.dimension_value + left join + int_monthly_onboarding_mrr_metrics onboarding_mrr + on d.date = onboarding_mrr.date + and d.dimension = onboarding_mrr.dimension + and d.dimension_value = onboarding_mrr.dimension_value ) select current.year, @@ -547,6 +555,9 @@ select -- INCOME RETAINED POST RESOLUTIONS-- {{ calculate_safe_relative_increment("revenue_retained_post_resolutions_in_gbp") }} + -- ONBOARDING MRR METRIC -- + {{ calculate_safe_relative_increment("expected_mrr") }} + from plain_kpi_combination current left join plain_kpi_combination previous_year