Addressed comments
This commit is contained in:
parent
a48f6d0f59
commit
63b1eac81f
3 changed files with 12 additions and 9 deletions
|
|
@ -2,6 +2,7 @@ with
|
|||
int_monthly_aggregated_metrics_history_by_deal as (
|
||||
select * from {{ ref("int_monthly_aggregated_metrics_history_by_deal") }}
|
||||
),
|
||||
int_kpis__dimension_deals as (select * from {{ ref("int_kpis__dimension_deals") }}),
|
||||
deal_attributes as (
|
||||
select
|
||||
id_deal,
|
||||
|
|
@ -13,7 +14,7 @@ with
|
|||
coalesce(
|
||||
hubspot_listing_segmentation, 'UNSET'
|
||||
) as hubspot_listing_segmentation
|
||||
from {{ ref("int_kpis__dimension_deals") }}
|
||||
from int_kpis__dimension_deals
|
||||
-- Exclude deals without live dates
|
||||
where effective_deal_start_date_utc is not null
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1754,9 +1754,13 @@ models:
|
|||
|
||||
- name: int_mtd_agg_onboarding_mrr_revenue
|
||||
description: |
|
||||
This model contains the month-to-date aggregated metrics for the onboarding MRR.
|
||||
It includes the expected MRR per deal and the total expected MRR, which is obtained
|
||||
by summing the expected MRRs for all new deals.
|
||||
This model contains the month-to-date aggregated metrics for onboarding MRR.
|
||||
It includes the total expected MRR revenue for the month, aggregated by
|
||||
dimension for 'global' and 'by_number_of_listings' only.
|
||||
- The 'by_number_of_listings' dimension is calculated by multiplying the
|
||||
expected MRR per deal by the number of new deals in that segment.
|
||||
- The 'global' dimension represents the sum of all expected MRRs across
|
||||
all segments.
|
||||
|
||||
data_tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
|
|
@ -1780,7 +1784,6 @@ models:
|
|||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
||||
- name: dimension_value
|
||||
data_type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue