wip2
This commit is contained in:
parent
7213a34d1c
commit
bf0cddcb4d
1 changed files with 12 additions and 1 deletions
|
|
@ -357,7 +357,10 @@ with
|
||||||
+ coalesce(invoiced_revenue.xero_waiver_paid_back_to_host_in_gbp, 0)
|
+ coalesce(invoiced_revenue.xero_waiver_paid_back_to_host_in_gbp, 0)
|
||||||
+ coalesce(host_resolutions.xero_host_resolution_amount_paid_in_gbp, 0),
|
+ coalesce(host_resolutions.xero_host_resolution_amount_paid_in_gbp, 0),
|
||||||
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
|
from int_kpis__agg_dates_main_kpis d
|
||||||
left join
|
left join
|
||||||
|
|
@ -430,6 +433,11 @@ with
|
||||||
on d.date = churn.date
|
on d.date = churn.date
|
||||||
and d.dimension = churn.dimension
|
and d.dimension = churn.dimension
|
||||||
and d.dimension_value = churn.dimension_value
|
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
|
select
|
||||||
current.year,
|
current.year,
|
||||||
|
|
@ -547,6 +555,9 @@ select
|
||||||
-- INCOME RETAINED POST RESOLUTIONS--
|
-- INCOME RETAINED POST RESOLUTIONS--
|
||||||
{{ calculate_safe_relative_increment("revenue_retained_post_resolutions_in_gbp") }}
|
{{ calculate_safe_relative_increment("revenue_retained_post_resolutions_in_gbp") }}
|
||||||
|
|
||||||
|
-- ONBOARDING MRR METRIC --
|
||||||
|
{{ calculate_safe_relative_increment("expected_mrr") }}
|
||||||
|
|
||||||
from plain_kpi_combination current
|
from plain_kpi_combination current
|
||||||
left join
|
left join
|
||||||
plain_kpi_combination previous_year
|
plain_kpi_combination previous_year
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue