commit wip schema
This commit is contained in:
parent
d0406e975a
commit
77a70d21a4
2 changed files with 50 additions and 2 deletions
|
|
@ -42,8 +42,8 @@ select
|
|||
r.metric_month,
|
||||
case
|
||||
when r.metric_month + interval '12 months' >= date_trunc('month', now())::date
|
||||
then 0
|
||||
else 1
|
||||
then false
|
||||
else true
|
||||
end as is_full_12_months_period,
|
||||
r.property_bucket,
|
||||
sum(coalesce(m.total_revenue_in_gbp, 0)) as cumulative_total_revenue_in_gbp,
|
||||
|
|
|
|||
|
|
@ -1706,3 +1706,51 @@ models:
|
|||
- name: is_deal_in_xero
|
||||
data_type: boolean
|
||||
description: "Flag to indicate if the deal is in Xero."
|
||||
|
||||
- name: int_onboarding_mrr_by_segment
|
||||
description: |
|
||||
"This table provides data on the Onboarding Monthly Recurring Revenue (MRR),
|
||||
segmented by the number of properties specified in each deal on HubSpot.
|
||||
The Onboarding MRR is an estimate of the expected monthly revenue generated by
|
||||
each new deal. It is calculated by taking the total revenue generated by all
|
||||
active accounts over the last 12 months and dividing it by the number of active
|
||||
months for each account."
|
||||
columns:
|
||||
- name: date
|
||||
data_type: date
|
||||
description: |
|
||||
"Date from which the data is being taken. It is the first day of the month."
|
||||
|
||||
- name: is_full_12_months_period
|
||||
data_type: boolean
|
||||
description: |
|
||||
"Boolean that indicates if there is a full 12 months period of data."
|
||||
|
||||
- name: property_bucket
|
||||
data_type: text
|
||||
description: |
|
||||
"Segmentation based on the number of properties specified by each deal
|
||||
in HubSpot."
|
||||
data_tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- "01|05"
|
||||
- "06|20"
|
||||
- "21|60"
|
||||
- "61+"
|
||||
- "global"
|
||||
|
||||
- name: cumulative_total_revenue_in_gbp
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total revenue revenue
|
||||
|
||||
- name: total_active_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"D
|
||||
|
||||
- name: expected_mrr_per_month
|
||||
data_type: numeric
|
||||
description: |
|
||||
"D
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue