Updated existing model with some new fields for churning report
This commit is contained in:
parent
24d13185eb
commit
f8b551a75c
4 changed files with 52 additions and 311 deletions
|
|
@ -385,6 +385,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: |
|
||||
|
|
@ -1568,6 +1584,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: |
|
||||
|
|
@ -2745,180 +2777,3 @@ models:
|
|||
Relative difference between the current year YTD and the YTD target,
|
||||
with a sign to represent if the relative difference is good (positive) or bad
|
||||
(negative) for our business.
|
||||
|
||||
- name: int_monthly_churned_deals
|
||||
description: |
|
||||
"Model containing deals that have churned according to our data in HubSpot.
|
||||
It contains the main metrics of revenue for different time windows from
|
||||
the cancellation month.
|
||||
There might be some cases where the churned deal is reactivated, this will
|
||||
be reflected in the field 'is_currently_active'."
|
||||
columns:
|
||||
- name: id_deal
|
||||
data_type: character varying
|
||||
description:
|
||||
"Main identifier of the B2B clients. A Deal can have multiple Hosts.
|
||||
A Host can have only 1 Deal or no Deal at all. This field can be null."
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: cancellation_year
|
||||
data_type: integer
|
||||
description: "Year when the deal was offboarded according to
|
||||
Hubspot."
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: cancellation_month
|
||||
data_type: integer
|
||||
description: "Month when the deal was offboarded according to
|
||||
Hubspot."
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: cancellation_date_utc
|
||||
data_type: date
|
||||
description: "Date when the deal was offboarded according to
|
||||
Hubspot."
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: live_date_utc
|
||||
data_type: date
|
||||
description: "Date when the deal went live according to
|
||||
Hubspot. It can be null"
|
||||
|
||||
- name: is_currently_active
|
||||
data_type: boolean
|
||||
description: "Flag indicating if the deal has reactivated
|
||||
after the churn."
|
||||
|
||||
- name: main_deal_name
|
||||
data_type: string
|
||||
description: |
|
||||
Main name for this ID deal.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: client_type
|
||||
data_type: string
|
||||
description: |
|
||||
Type of client. It can be either PLATFORM or API.
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- PLATFORM
|
||||
- API
|
||||
|
||||
- name: has_active_pms
|
||||
data_type: boolean
|
||||
description: |
|
||||
Does the deal have an active associated PMS.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: active_pms_list
|
||||
data_type: string
|
||||
description: |
|
||||
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: main_billing_country_iso_3_per_deal
|
||||
data_type: string
|
||||
description: |
|
||||
ISO 3166-1 alpha-3 main country code in which the Deal is billed.
|
||||
In some cases it's null.
|
||||
|
||||
- name: total_revenue_in_gbp_previous_12_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total revenue in GBP generated by the deal for the 12 months preceding
|
||||
the cancellation month. This considers the revenue from the full 12-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: total_revenue_in_gbp_previous_6_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total revenue in GBP generated by the deal for the 6 months preceding
|
||||
the cancellation month. This considers the revenue from the full 6-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: total_revenue_in_gbp_previous_3_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total revenue in GBP generated by the deal for the 3 months preceding
|
||||
the cancellation month. This considers the revenue from the full 3-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: total_revenue_in_gbp_previous_month
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total revenue in GBP generated by the deal for the month preceding
|
||||
the cancellation month. This considers the revenue from the full month
|
||||
before the month in which the cancellation occurs."
|
||||
|
||||
- name: revenue_retained_post_resolutions_in_gbp_previous_12_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total amount of revenue in GBP retained by the deal
|
||||
post waiver payouts and resolution payouts in GBP for the 12 months preceding
|
||||
the cancellation month. This considers the revenue from the full 12-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: revenue_retained_post_resolutions_in_gbp_previous_6_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total amount of revenue in GBP retained by the deal
|
||||
post waiver payouts and resolution payouts in GBP for the 6 months preceding
|
||||
the cancellation month. This considers the revenue from the full 6-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: revenue_retained_post_resolutions_in_gbp_previous_3_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total amount of revenue in GBP retained by the deal
|
||||
post waiver payouts and resolution payouts in GBP for the 3 months preceding
|
||||
the cancellation month. This considers the revenue from the full 3-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: revenue_retained_post_resolutions_in_gbp_previous_month
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total amount of revenue in GBP retained by the deal
|
||||
post waiver payouts and resolution payouts in GBP for the month preceding
|
||||
the cancellation month. This considers the revenue from the full month
|
||||
before the month in which the cancellation occurs."
|
||||
|
||||
- name: created_bookings_previous_12_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total number of bookings created by the deal for the 12 months preceding
|
||||
the cancellation month. This considers the bookings from the full 12-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: created_bookings_previous_6_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total number of bookings created by the deal for the 6 months preceding
|
||||
the cancellation month. This considers the bookings from the full 6-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: created_bookings_previous_3_months
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total number of bookings created by the deal for the 3 months preceding
|
||||
the cancellation month. This considers the bookings from the full 3-month
|
||||
period before the month in which the cancellation occurs."
|
||||
|
||||
- name: created_bookings_previous_month
|
||||
data_type: numeric
|
||||
description: |
|
||||
"Total number of bookings created by the deal for the month preceding
|
||||
the cancellation month. This considers the bookings from the full month
|
||||
before the month in which the cancellation occurs."
|
||||
|
||||
- name: number_of_accommodations
|
||||
data_type: bigint
|
||||
description: |
|
||||
"Total number of accommodations associated with the deal."33
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue