Addressed comments and included changes in reporting
This commit is contained in:
parent
2461286c9c
commit
2d4cded48c
4 changed files with 80 additions and 5 deletions
|
|
@ -15,12 +15,20 @@ select
|
|||
has_active_pms as has_active_pms,
|
||||
client_type as client_type,
|
||||
active_pms_list as active_pms_list,
|
||||
active_accommodations_per_deal_segmentation
|
||||
as active_accommodations_per_deal_segmentation,
|
||||
main_billing_country_iso_3_per_deal as main_billing_country_iso_3_per_deal,
|
||||
deal_lifecycle_state as deal_lifecycle_state,
|
||||
deal_hubspot_stage as deal_hubspot_stage,
|
||||
account_manager as account_manager,
|
||||
live_date_utc as live_date_utc,
|
||||
cancellation_date_utc as cancellation_date_utc,
|
||||
months_between_live_and_churn as months_between_live_and_churn,
|
||||
last_contacted_date_utc as last_contacted_date_utc,
|
||||
days_between_last_contacted_and_churn as days_between_last_contacted_and_churn,
|
||||
amount_times_contacted as amount_times_contacted,
|
||||
cancellation_category as cancellation_category,
|
||||
is_churning_from_inactivity as is_churning_from_inactivity,
|
||||
created_bookings as created_bookings,
|
||||
listings_booked_in_month as listings_booked_in_month,
|
||||
total_revenue_in_gbp as total_revenue_in_gbp,
|
||||
|
|
|
|||
|
|
@ -1560,6 +1560,22 @@ models:
|
|||
Name of the active PMS associated with the deal. It can have more than
|
||||
one PMS associated with it. It can be null if it doesn't have any PMS associated.
|
||||
|
||||
- name: active_accommodations_per_deal_segmentation
|
||||
data_type: string
|
||||
description: |
|
||||
Segment value based on the number of listings booked in 12 months
|
||||
for a given deal and date.
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- "0"
|
||||
- "01-05"
|
||||
- "06-20"
|
||||
- "21-60"
|
||||
- "61+"
|
||||
- "UNSET"
|
||||
|
||||
- name: main_billing_country_iso_3_per_deal
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -1596,6 +1612,44 @@ models:
|
|||
Hubspot. It can be null if the deal has never
|
||||
churned.
|
||||
|
||||
- name: months_between_live_and_churn
|
||||
data_type: integer
|
||||
description: |
|
||||
Number of months between the live date and the
|
||||
churn date.
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: last_contacted_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
Date when the deal was last contacted according to
|
||||
Hubspot.
|
||||
|
||||
- name: days_between_last_contacted_and_churn
|
||||
data_type: integer
|
||||
description: |
|
||||
Number of days between the last contacted date
|
||||
and the churn date.
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: amount_times_contacted
|
||||
data_type: integer
|
||||
description: |
|
||||
Number of times the deal was contacted according
|
||||
to Hubspot.
|
||||
|
||||
- name: is_churning_from_inactivity
|
||||
data_type: boolean
|
||||
description: |
|
||||
Flag to identify if the deal is churning due to
|
||||
inactivity because of lack of bookings in the past 12 months.
|
||||
|
||||
- name: created_bookings
|
||||
data_type: integer
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue