diff --git a/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql b/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql index bf1e5a5..9617c58 100644 --- a/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql +++ b/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql @@ -201,6 +201,18 @@ "previous_YTD": "previous_ytd_total_revenue_churn_12m", "display_exclusion": "ONGOING_MONTH", "number_format": "CURRENCY_GBP_INTEGER", + "increment_sign_format": "NEGATIVE", + }, + { + "id_metric": 18, + "name": "Booking Fees per Billable Booking", + "current_month_MTD": "current_month_mtd_booking_net_fees_per_billable_booking", + "previous_month_EOM": "previous_month_eom_booking_net_fees_per_billable_booking", + "previous_year_MTD": "previous_year_mtd_booking_net_fees_per_billable_booking", + "current_YTD": "current_ytd_booking_net_fees_per_billable_booking", + "previous_YTD": "previous_ytd_booking_net_fees_per_billable_booking", + "display_exclusion": "INVOICING", + "number_format": "CURRENCY_GBP_1_DECIMAL", "increment_sign_format": "POSITIVE", }, ] %} diff --git a/models/intermediate/cross/int_ytd_mtd_main_metrics_overview.sql b/models/intermediate/cross/int_ytd_mtd_main_metrics_overview.sql index 5cce290..f57993d 100644 --- a/models/intermediate/cross/int_ytd_mtd_main_metrics_overview.sql +++ b/models/intermediate/cross/int_ytd_mtd_main_metrics_overview.sql @@ -40,7 +40,7 @@ with as current_month_mtd_total_revenue_churn_12m, total_revenue_global_preceding_12_months as current_month_mtd_total_revenue_global_12m, - expected_mrr as current_month_mtd_onboarding_mrr, + xero_booking_net_fees_in_gbp as current_month_mtd_booking_net_fees_in_gbp, -- Previous Year (12 months ago), Month To Date Metrics -- previous_year_total_revenue_in_gbp @@ -67,7 +67,8 @@ with as previous_year_mtd_total_revenue_churn_12m, previous_year_total_revenue_global_preceding_12_months as previous_year_mtd_total_revenue_global_12m, - previous_year_expected_mrr as previous_year_mtd_onboarding_mrr, + previous_year_xero_booking_net_fees_in_gbp + as previous_year_mtd_booking_net_fees_in_gbp, -- Previous Month, End Of Month Metrics -- lag(total_revenue_in_gbp) over ( @@ -112,9 +113,9 @@ with lag(total_revenue_global_preceding_12_months) over ( partition by dimension, dimension_value order by date ) as previous_month_eom_total_revenue_global_12m, - lag(expected_mrr) over ( + lag(xero_booking_net_fees_in_gbp) over ( partition by dimension, dimension_value order by date - ) as previous_month_eom_onboarding_mrr + ) as previous_month_eom_booking_net_fees_in_gbp from int_mtd_vs_previous_year_metrics where @@ -193,11 +194,11 @@ with order by date rows between unbounded preceding and current row ) as current_ytd_total_revenue_global_12m, - sum(current_month_mtd_onboarding_mrr) over ( + sum(current_month_mtd_booking_net_fees_in_gbp) over ( partition by financial_year, dimension, dimension_value order by date rows between unbounded preceding and current row - ) as current_ytd_onboarding_mrr, + ) as current_ytd_booking_net_fees_in_gbp, -- Specific treatment for live_deals as it is a counter current_month_mtd_live_deals as current_ytd_live_deals, @@ -267,11 +268,11 @@ with order by date rows between unbounded preceding and current row ) as previous_ytd_total_revenue_global_12m, - sum(previous_year_mtd_onboarding_mrr) over ( + sum(previous_year_mtd_booking_net_fees_in_gbp) over ( partition by financial_year, dimension, dimension_value order by date rows between unbounded preceding and current row - ) as previous_ytd_onboarding_mrr, + ) as previous_ytd_booking_net_fees_in_gbp, -- Specific treatment for live_deals as it is a counter previous_year_mtd_live_deals as previous_ytd_live_deals @@ -299,6 +300,9 @@ select coalesce(current_month_mtd_total_revenue_churn_12m, 0) / nullif( current_month_mtd_total_revenue_global_12m, 0 ) as current_month_mtd_total_revenue_churn_rate, + coalesce(current_month_mtd_booking_net_fees_in_gbp, 0) / nullif( + current_month_mtd_billable_bookings, 0 + ) as current_month_mtd_booking_net_fees_per_billable_booking, -- Previous Year (12 months ago), Month To Date Metrics -- abs(coalesce(previous_year_mtd_xero_waiver_paid_back_to_host_in_gbp, 0)) / nullif( @@ -318,6 +322,9 @@ select coalesce(previous_year_mtd_total_revenue_churn_12m, 0) / nullif( previous_year_mtd_total_revenue_global_12m, 0 ) as previous_year_mtd_total_revenue_churn_rate, + coalesce(previous_year_mtd_booking_net_fees_in_gbp, 0) / nullif( + previous_year_mtd_billable_bookings, 0 + ) as previous_year_mtd_booking_net_fees_per_billable_booking, -- Previous Month, End Of Month Metrics -- abs(coalesce(previous_month_eom_xero_waiver_paid_back_to_host_in_gbp, 0)) / nullif( @@ -337,6 +344,9 @@ select coalesce(previous_month_eom_total_revenue_churn_12m, 0) / nullif( previous_month_eom_total_revenue_global_12m, 0 ) as previous_month_eom_total_revenue_churn_rate, + coalesce(previous_month_eom_booking_net_fees_in_gbp, 0) / nullif( + previous_month_eom_billable_bookings, 0 + ) as previous_month_eom_booking_net_fees_per_billable_booking, -- Current Financial Year, Year To Date Metrics -- abs(coalesce(current_ytd_xero_waiver_paid_back_to_host_in_gbp, 0)) @@ -353,6 +363,9 @@ select coalesce(current_ytd_total_revenue_churn_12m, 0) / nullif( current_ytd_total_revenue_global_12m, 0 ) as current_ytd_total_revenue_churn_rate, + coalesce(current_ytd_booking_net_fees_in_gbp, 0) / nullif( + current_ytd_billable_bookings, 0 + ) as current_ytd_booking_net_fees_per_billable_booking, -- Previous Financial Year, Year To Date Metrics -- abs(coalesce(previous_ytd_xero_waiver_paid_back_to_host_in_gbp, 0)) @@ -368,6 +381,9 @@ select ) as previous_ytd_waiver_revenue_per_billable_booking, coalesce(previous_ytd_total_revenue_churn_12m, 0) / nullif( previous_ytd_total_revenue_global_12m, 0 - ) as previous_ytd_total_revenue_churn_rate + ) as previous_ytd_total_revenue_churn_rate, + coalesce(previous_ytd_booking_net_fees_in_gbp, 0) / nullif( + previous_ytd_billable_bookings, 0 + ) as previous_ytd_booking_net_fees_per_billable_booking from ytd_mtd_main_metrics_overview diff --git a/models/intermediate/cross/schema.yml b/models/intermediate/cross/schema.yml index 081c1eb..c7ee65a 100644 --- a/models/intermediate/cross/schema.yml +++ b/models/intermediate/cross/schema.yml @@ -2135,10 +2135,15 @@ models: description: | Total revenue churn rate for the current month MTD. - - name: current_month_mtd_onboarding_mrr + - name: current_month_mtd_booking_net_fees_in_gbp data_type: numeric description: | - Total expected Onboarding MRR for the current month MTD. + Total Booking net fees in gbp for the current month MTD. + + - name: current_month_mtd_booking_net_fees_per_billable_booking + data_type: numeric + description: | + Total Booking net fees per billable booking for the current month MTD. - name: previous_year_mtd_billable_bookings data_type: integer @@ -2250,11 +2255,17 @@ models: Total revenue churn rate for the previous year (12 months ago) MTD. - - name: previous_year_mtd_onboarding_mrr + - name: previous_year_mtd_booking_net_fees_in_gbp data_type: numeric description: | - Total expected Onboarding MRR for the previous year - (12 months ago) MTD. + Total Booking net fees in gbp for the previous + year (12 months ago) MTD. + + - name: previous_year_mtd_booking_net_fees_per_billable_booking + data_type: numeric + description: | + Total Booking net fees per billable booking for the + previous year (12 months ago) MTD. - name: current_ytd_billable_bookings data_type: integer @@ -2364,10 +2375,16 @@ models: description: | Total revenue churn rate for the current financial year YTD. - - name: current_ytd_onboarding_mrr + - name: current_ytd_booking_net_fees_in_gbp data_type: numeric description: | - Total expected Onboarding MRR for the current financial year YTD. + Total booking net fees in gbp for the current financial year YTD. + + - name: current_ytd_booking_net_fees_per_billable_booking + data_type: numeric + description: | + Total booking net fees per billable booking for the + current financial year YTD. - name: previous_ytd_billable_bookings data_type: integer @@ -2478,11 +2495,16 @@ models: Total revenue churn rate for the previous financial year YTD. - - name: previous_ytd_onboarding_mrr + - name: previous_ytd_booking_net_fees_in_gbp data_type: numeric description: | - Total expected Onboarding MRR for the previous - financial year YTD. + Total booking net fees in gbp for the previous financial year YTD. + + - name: previous_ytd_booking_net_fees_per_billable_booking + data_type: numeric + description: | + Total booking net fees per billable booking for the + previous financial year YTD. - name: previous_month_eom_billable_bookings data_type: integer @@ -2600,11 +2622,17 @@ models: Total revenue churn rate for the previous month, at the end of the month. - - name: previous_month_eom_onboarding_mrr + - name: previous_month_eom_booking_net_fees_in_gbp data_type: numeric description: | - Total expected Onboarding MRR for the previous month, - at the end of the month. + Total booking net fees in gbp for the previous + month at the end of the month. + + - name: previous_month_eom_booking_net_fees_per_billable_booking + data_type: numeric + description: | + Total booking net fees per billable booking for the + previous month at the end of the month. - name: int_ytd_mtd_aggregated_main_metrics_overview description: |