creates onboarding mrr model

This commit is contained in:
Joaquin Ossa 2025-01-14 11:48:44 +01:00
parent 77a70d21a4
commit 1db8a050ce
2 changed files with 49 additions and 26 deletions

View file

@ -1707,10 +1707,9 @@ models:
data_type: boolean
description: "Flag to indicate if the deal is in Xero."
- name: int_onboarding_mrr_by_segment
- name: int_deals_onboarding_mrr
description: |
"This table provides data on the Onboarding Monthly Recurring Revenue (MRR),
segmented by the number of properties specified in each deal on HubSpot.
"This table provides data on the Onboarding Monthly Recurring Revenue (MRR).
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
@ -1719,19 +1718,26 @@ models:
- name: date
data_type: date
description: |
"Date from which the data is being taken. It is the first day of the month."
"Last date of the month for which the data is reported.
It considers the data from the previous 12 months up to the date."
data_tests:
- not_null
- is_last_day_of_month
- name: is_full_12_months_period
data_type: boolean
- name: billing_country
data_type: text
description: |
"Boolean that indicates if there is a full 12 months period of data."
"ISO 3166-1 alpha-3 main country code in which the Deals are billed"
data_tests:
- not_null
- name: property_bucket
- name: number_of_listings
data_type: text
description: |
"Segmentation based on the number of properties specified by each deal
in HubSpot."
data_tests:
- not_null
- accepted_values:
values:
- "01|05"
@ -1740,17 +1746,26 @@ models:
- "61+"
- "global"
- name: cumulative_total_revenue_in_gbp
- name: total_revenue_in_gbp
data_type: numeric
description: |
"Total revenue revenue
"Total revenue accumulated by all active accounts over the last 12 months."
data_tests:
- not_null
- name: total_active_months
data_type: numeric
description: |
"D
"Total number of active months for all accounts over the last 12 months."
data_tests:
- not_null
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: false
- name: expected_mrr_per_month
- name: expected_mrr
data_type: numeric
description: |
"D
"Expected MRR for each new deal."
data_tests:
- not_null