# Description This PR handles the computation of KPIs for New Dash, focusing on Created Services. New dimensions configured in `business_kpis_configuration` and applied in this new models for `NEW_DASH_CREATED_SERVICES`: * `dim_host`, * `dim_has_upgraded_service`, * `dim_new_dash_version`, * `dim_pricing_service` New daily metric model `int_kpis__metric_daily_new_dash_created_services` * Follows a similar pattern as for the rest of daily metric models. The only difference is that is aggregated to `id_booking` to ensure we can handle count distinct of bookings per different time granularities. * Reads from the new pricing tables `int_core__booking_summary` and `int_core__booking_service_detail`. The main filters applied are selecting only new dash users and only services created after the user move timestamp to new dash. An additional metric model at monthly level is created `int_kpis__metric_monthly_new_dash_created_services` These finally go to a dimension aggregated model (`dimension`, `dimension_value`), respectively: * Daily: `int_kpis__agg_daily_new_dash_created_services` * Monthly: `int_kpis__agg_monthly_new_dash_created_services` A final model aims to aggregate the different dimension aggregated metrics for New Dash: `int_kpis__product_new_dash_agg_metrics` * It computes a `time_granularity` aggregation * Here I will add additional metrics (such as revenue) once we have them. A final model reading from the previous is exposed to reporting: `kpis__product_new_dash_agg_metrics` # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [X] I have checked for DRY opportunities with other models and docs. - [X] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #20809
6514 lines
200 KiB
YAML
6514 lines
200 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: int_kpis__dimension_dates
|
|
description: |
|
|
This model provides the daily time dimensionality needed for KPIs.
|
|
It only considers dates up-to-yesterday.
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Specific date. It's the primary key of this model.
|
|
tests:
|
|
- unique
|
|
- not_null
|
|
|
|
- name: year
|
|
data_type: int
|
|
description: Year number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: month
|
|
data_type: int
|
|
description: Month number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: week
|
|
data_type: int
|
|
description: Week number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: day
|
|
data_type: int
|
|
description: Day monthly number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: first_day_month
|
|
data_type: date
|
|
description: |
|
|
First day of the month corresponding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: last_day_month
|
|
data_type: date
|
|
description: |
|
|
Last day of the month corresponding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_end_of_month
|
|
data_type: boolean
|
|
description: True if it's end of month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_current_month
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the current month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_month_to_date
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the scope of month-to-date, false otherwise.
|
|
The scope of month-to-date takes into account both 1) a date being in
|
|
the current month or 2) a date corresponding to the same month of the
|
|
previous year, which day number cannot be higher than yesterday's day
|
|
number.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: first_day_week
|
|
data_type: date
|
|
description: |
|
|
First day of the week corresponding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: last_day_week
|
|
data_type: date
|
|
description: |
|
|
Last day of the week corresponding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_end_of_week
|
|
data_type: boolean
|
|
description: True if it's end of week, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_current_week
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the current week, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: int_kpis__agg_dates_main_kpis
|
|
description: |
|
|
This model provides the skeleton of dates and dimensions needed for Main KPIs display.
|
|
It encapsulates the multiple manners to present data in the reporting, namely, Monthly+MTD
|
|
per a given dimension or specifically Monthly by Deal.
|
|
The rest of the metrics computed are attached to this master table.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics that will be
|
|
available in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: year
|
|
data_type: int
|
|
description: Year number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: month
|
|
data_type: int
|
|
description: Month number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: day
|
|
data_type: int
|
|
description: Day monthly number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: first_day_month
|
|
data_type: date
|
|
description: |
|
|
First day of the month corresponding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: last_day_month
|
|
data_type: date
|
|
description: |
|
|
Last day of the month corresponding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_end_of_month
|
|
data_type: boolean
|
|
description: True if it's end of month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_current_month
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the current month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: int_kpis__lifecycle_daily_accommodation
|
|
description: |
|
|
This model computes the daily lifecycle segment for each accommodation, also known as
|
|
listings.
|
|
The information regarding the booking-related time allows for the current status of any listing
|
|
regarding its activity. This information is encapsulated in the following columns:
|
|
|
|
accommodation_lifecycle_state: contains one of the following states
|
|
- 01-New: Listings that have been created in the current month, without bookings
|
|
- 02-Never Booked: Listings that have been created before the current month, without bookings.
|
|
- 03-First Time Booked: Listings that have been booked for the first time in the current month.
|
|
- 04-Active: Listings that have booking activity in the past 12 months (that are not FTB nor reactivated)
|
|
- 05-Churning: Listings that are becoming inactive because of lack of bookings in the past 12 months
|
|
- 06-Inactive: Listings that have not had a booking for more than 12 months.
|
|
- 07-Reactivated: Listings that have had a booking in the current month that were inactive or churning before.
|
|
- Finally, if none of the logic applies, which should not happen, null will be set and a dbt alert will raise.
|
|
|
|
Since the states of Active, First Time Booked and Reactivated indicate certain booking activity and are
|
|
mutually exclusive, the model also provides information of the recency of the bookings by the following
|
|
booleans:
|
|
- has_been_booked_within_current_month: If a listing has had a booking created in the current month
|
|
- has_been_booked_within_last_6_months: If a listing has had a booking created in the past 6 months
|
|
- has_been_booked_within_last_12_months: If a listing has had a booking created in the past 12 months
|
|
Note that if a listing has had a booking created in a given month, all 3 columns will be true. Similarly,
|
|
if the last booking created to a listing was 5 months ago, only the column has_been_booked_in_1_month
|
|
will be false; while the other 2 will be true.
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_accommodation
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date in which a Listing has a given lifecycle state.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_accommodation
|
|
data_type: bigint
|
|
description: Id of the accommodation or listing.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: creation_date_utc
|
|
data_type: date
|
|
description: Date of when the listing was created.
|
|
|
|
- name: first_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the first booking created for a given listing. Can be null if the listing
|
|
has never had a booking associated with it.
|
|
|
|
- name: last_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the last booking created for a given listing. Can be null if the listing
|
|
has never had a booking associated with it. Can be the same as first_time_booked_date_utc
|
|
if the listing only had 1 booking in its history.
|
|
|
|
- name: second_to_last_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the second-to-last booking created for a given listing, meaning the creation
|
|
date of the booking that precedes the last one. It's relevant for the reactivation computation
|
|
on the lifecycle. Can be null if the listing has never had a booking associated with it or if
|
|
the listing only had 1 booking in its history.
|
|
|
|
- name: accommodation_lifecycle_state
|
|
data_type: character varying
|
|
description: |
|
|
Contains the lifecycle state of a Listing. The accepted values are:
|
|
01-New, 02-Never Booked, 03-First Time Booked, 04-Active, 05-Churning, 06-Inactive,
|
|
07-Reactivated. Failing to implement the logic will result in alert.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- 01-New
|
|
- 02-Never Booked
|
|
- 03-First Time Booked
|
|
- 04-Active
|
|
- 05-Churning
|
|
- 06-Inactive
|
|
- 07-Reactivated
|
|
|
|
- name: has_been_booked_within_current_month
|
|
data_type: boolean
|
|
description: If the listing has had a booking created in the current month.
|
|
|
|
- name: has_been_booked_within_last_6_months
|
|
data_type: boolean
|
|
description: If the listing has had a booking created in the past 6 months.
|
|
|
|
- name: has_been_booked_within_last_12_months
|
|
data_type: boolean
|
|
description: If the listing has had a booking created in the past 12 months.
|
|
|
|
- name: int_kpis__lifecycle_daily_deal
|
|
description: |
|
|
This model computes the daily lifecycle of accounts, at deal level.
|
|
The information regarding the booking-related time allows for the current status of any
|
|
deal regarding its activity. This information is encapsulated in the following columns:
|
|
|
|
deal_lifecycle_state: contains one of the following states
|
|
- 01-New: Deals that have been created in the current month, without bookings, that are not offboarded.
|
|
- 02-Never Booked: Deals that have been created before the current month, without bookings, that are not offboarded.
|
|
- 03-First Time Booked: Deals that have been booked for the first time in the current month, that are not offboarded.
|
|
- 04-Active: Deals that have booking activity in the past 12 months (that are not FTB nor reactivated), that are not offboarded.
|
|
- 05-Churning: Either Deals that are offboarded in that month or Deals that are becoming inactive because of lack of bookings in the past 12 months
|
|
- 06-Inactive: Either Deals that have been previously offboarded or Deals that have not had a booking for more than 12 months.
|
|
- 07-Reactivated: Deals that have had a booking in the current month that were inactive or churning before, that are not offboarded.
|
|
- Finally, if none of the logic applies, which should not happen, null will be set and a dbt alert will raise.
|
|
|
|
Since the states of Active, First Time Booked and Reactivated indicate certain booking activity and are
|
|
mutually exclusive, the model also provides information of the recency of the bookings by the following
|
|
booleans:
|
|
- has_been_booked_within_current_month: If a deal has had a booking created in the current month
|
|
- has_been_booked_within_last_6_months: If a deal has had a booking created in the past 6 months
|
|
- has_been_booked_within_last_12_months: If a deal has had a booking created in the past 12 months
|
|
Note that if a deal has had a booking created in a given month, all 3 columns will be true. Similarly,
|
|
if the last booking created to a deal was 5 months ago, only the column has_been_booked_in_1_month
|
|
will be false; while the other 2 will be true.
|
|
Some final considerations:
|
|
- It's possible but not common that a Deal gets offboarded on the same month that has had some bookings created.
|
|
- It shouldn't happen that a Deal that is Inactive has some bookings created. However, there's few cases in which
|
|
this happens likely because of misconfiguration between Hubspot and Core. This should be reported to increase
|
|
data quality.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date in which a Deal has a given lifecycle state.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique identifier of the Account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: creation_date_utc
|
|
data_type: date
|
|
description: Date of when the first host associated to that deal was created.
|
|
|
|
- name: first_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the first booking created for a given deal. Can be null if the deal
|
|
has never had a booking associated with it.
|
|
|
|
- name: last_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the last booking created for a given deal. Can be null if the deal
|
|
has never had a booking associated with it. Can be the same as first_time_booked_date_utc
|
|
if the deal only had 1 booking in its history.
|
|
|
|
- name: second_to_last_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the second-to-last booking created for a given deal, meaning the creation
|
|
date of the booking that precedes the last one. It's relevant for the reactivation computation
|
|
on the lifecycle. Can be null if the deal has never had a booking associated with it or if
|
|
the deal only had 1 booking in its history.
|
|
|
|
- name: cancellation_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of when the deal was cancelled, according to Hubspot. This is the date we're considering
|
|
for hard offboarding. It can be null, meaning the account has not been offboarded.
|
|
|
|
- name: deal_lifecycle_state
|
|
data_type: character varying
|
|
description: |
|
|
Contains the lifecycle state of a deal. The accepted values are:
|
|
01-New, 02-Never Booked, 03-First Time Booked, 04-Active, 05-Churning, 06-Inactive,
|
|
07-Reactivated. Failing to implement the logic will result in alert.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- 01-New
|
|
- 02-Never Booked
|
|
- 03-First Time Booked
|
|
- 04-Active
|
|
- 05-Churning
|
|
- 06-Inactive
|
|
- 07-Reactivated
|
|
|
|
- name: has_been_booked_within_current_month
|
|
data_type: boolean
|
|
description: |
|
|
If the deal has had a booking already created in the current month.
|
|
Note that if the Booking is created on the 5th day, this column will
|
|
be false for the days 1st to 4th, and true from the day 5th onwards.
|
|
|
|
- name: has_been_booked_within_last_6_months
|
|
data_type: boolean
|
|
description: |
|
|
If the deal has had a booking created in the past 6 months.
|
|
|
|
- name: has_been_booked_within_last_12_months
|
|
data_type: boolean
|
|
description: |
|
|
If the deal has had a booking created in the past 12 months.
|
|
|
|
- name: has_been_offboarded
|
|
data_type: boolean
|
|
description: |
|
|
If the deal has been cancelled or not. Note that if the Deal
|
|
has been offboarded on the 5th day, this column will be false
|
|
for the days 1st to 4th, and true from the day 5th onwards.
|
|
|
|
- name: int_kpis__dimension_daily_accommodation
|
|
description: |
|
|
This model computes the deal segmentation per number of
|
|
listings in a daily manner.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Specific date in which the segmentation applies.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
tests:
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- name: accommodations_booked_in_12_months
|
|
data_type: bigint
|
|
description:
|
|
Actual volume of listings that have been booked in the past 12 months
|
|
for a given deal and date.
|
|
|
|
- name: int_kpis__metric_daily_created_bookings
|
|
description: |
|
|
This model computes the Daily Created Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal,
|
|
- dash_source.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
- dash_source
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been created.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dash_source
|
|
data_type: string
|
|
description: Dashboard source, either old or new.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "New Dash"
|
|
- "Old Dash"
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings created in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_created_bookings
|
|
description: |
|
|
This model computes the Monthly Created Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- dash_source,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- dash_source
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dash_source
|
|
data_type: string
|
|
description: Dashboard source, either old or new.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "New Dash"
|
|
- "Old Dash"
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings created in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_created_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Created Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- dash_source,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- dash_source
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dash_source
|
|
data_type: string
|
|
description: Dashboard source, either old or new.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "New Dash"
|
|
- "Old Dash"
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings created in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_created_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Created Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_dash_source
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: The monthly created bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_created_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Created Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_dash_source
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: The month-to-date created bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_created_guest_journeys
|
|
description: |
|
|
This model computes the Daily Created Guest Journeys at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been created.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_created_guest_journeys
|
|
description: |
|
|
This model computes the Monthly Created Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys created in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_created_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date Created Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys created in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_created_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Created Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: The monthly created guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_created_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Created Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: The month-to-date created guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_started_guest_journeys
|
|
description: |
|
|
This model computes the Daily Started Guest Journeys at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been started.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_started_guest_journeys
|
|
description: |
|
|
This model computes the Monthly Started Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys started in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_started_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date Started Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys started in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_started_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Started Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- started_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: The monthly started guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_started_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Started Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- started_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: The month-to-date started guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_completed_guest_journeys
|
|
description: |
|
|
This model computes the Daily Completed Guest Journeys at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been completed.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_completed_guest_journeys
|
|
description: |
|
|
This model computes the Monthly Completed Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_completed_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date Completed Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_completed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Completed Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- completed_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: The monthly completed guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_completed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Completed Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- completed_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: The month-to-date completed guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the Daily Guest Journeys with Payment at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been completed.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the Monthly Guest Journeys with Payment at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the Month-To-Date Guest Journeys with Payment at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Guest Journeys with Payment.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- guest_journeys_with_payment
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: The monthly guest journeys with payment for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Guest Journeys with Payment.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- guest_journeys_with_payment
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: The month-to-date guest journeys with payment for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_guest_payments
|
|
description: |
|
|
This model computes the Daily Guest Payments at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal,
|
|
- has_id_check.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
- has_id_check
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been completed.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of deposit fees paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of waiver payments paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of checkin cover fees paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of total payments paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_guest_payments
|
|
description: |
|
|
This model computes the Monthly Guest Payments at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated deposit fees paid by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated waiver payments paid by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated checkin cover fees by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated total payments paid by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_guest_payments
|
|
description: |
|
|
This model computes the Month-To-Date Guest Payments at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated deposit fees paid by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated waiver payments paid by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated checkin cover fees by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated total payments paid by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_weekly_guest_payments
|
|
description: |
|
|
This model computes the Weekly Guest Payments at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: week
|
|
data_type: int
|
|
description: ISO week number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated deposit fees paid by guests, without taxes,
|
|
in GBP in a given week up to the given date and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated waiver payments paid by guests, without taxes,
|
|
in GBP in a given week up to the given date and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated checkin cover fees by guests, without taxes,
|
|
in GBP in a given week up to the given date and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated total payments paid by guests, without taxes,
|
|
in GBP in a given week up to the given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_guest_payments
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Guest Payments.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- deposit_fees_in_gbp
|
|
- waiver_payments_in_gbp
|
|
- checkin_cover_fees_in_gbp
|
|
- total_guest_payments_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
- by_has_id_check
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly deposit fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly waiver payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly checkin cover fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly total payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_guest_payments
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Guest Payments.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- deposit_fees_in_gbp
|
|
- waiver_payments_in_gbp
|
|
- checkin_cover_fees_in_gbp
|
|
- total_guest_payments_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
- by_has_id_check
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date deposit fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date waiver payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date checkin cover fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date total payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: int_kpis__agg_weekly_guest_payments
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Weekly Guest Payments.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- deposit_fees_in_gbp
|
|
- waiver_payments_in_gbp
|
|
- checkin_cover_fees_in_gbp
|
|
- total_guest_payments_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
- by_has_id_check
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The weekly deposit fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The weekly waiver payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The weekly checkin cover fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The weekly total payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_check_out_bookings
|
|
description: |
|
|
This model computes the Daily Check-out Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been checked-out.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings checked-out in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_check_out_bookings
|
|
description: |
|
|
This model computes the Monthly Check-out Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings checked-out in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_check_out_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Check-out Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings checked-out in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_check_out_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Check-out Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- check_out_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: The monthly checked-out bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_check_out_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Check-out Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- check_out_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: The month-to-date checked-out bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_billable_bookings
|
|
description: |
|
|
This model computes the Daily Billable Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been billable.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings billable in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_billable_bookings
|
|
description: |
|
|
This model computes the Monthly Billable Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings billable in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_billable_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Billable Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings billable in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_billable_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Billable Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- billable_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: The monthly billable bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_billable_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Billable Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- billable_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: The month-to-date billable bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_cancelled_bookings
|
|
description: |
|
|
This model computes the Daily Cancelled Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been cancelled.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings cancelled in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_cancelled_bookings
|
|
description: |
|
|
This model computes the Monthly Cancelled Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings cancelled in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_cancelled_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Cancelled Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings cancelled in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_cancelled_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Cancelled Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- cancelled_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: The monthly cancelled bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_cancelled_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Cancelled Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- cancelled_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: The month-to-date cancelled bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes Guest Journey metrics at the deepest granularity
|
|
level for the Guest Products KPIs.
|
|
This model uses the Check-In date of the bookings for the date attribute.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of Check-In of the bookings for the guest journeys.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
|
|
- name: count_csat_score
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys with CSAT (customer satisfaction score)
|
|
in a given date and per specified dimension.
|
|
|
|
- name: average_csat_score
|
|
data_type: bigint
|
|
description: |
|
|
Average daily CSAT score in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the Monthly metrics associated with Guest Journeys
|
|
attributed to Check-In date at the deepest granularity.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
include Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: text
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
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: character varying
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of daily guest journeys created, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of daily guest journeys started, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of daily guest journeys completed, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: count_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated count of guest journeys with CSAT
|
|
(customer satisfaction score) in a given date, dimension, and value.
|
|
|
|
- name: average_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Monthly accumulated average CSAT score in a given date, dimension, and value.
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_between:
|
|
min_value: 0
|
|
max_value: 5
|
|
strictly: false
|
|
|
|
- name: int_kpis__agg_monthly_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for Monthly metrics associated
|
|
to Guest Journeys attributed to Check-In date.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: text
|
|
description: |
|
|
The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_guest_journeys_not_cancelled
|
|
- started_guest_journeys_not_cancelled
|
|
- completed_guest_journeys_not_cancelled
|
|
- created_guest_journeys
|
|
- started_guest_journeys
|
|
- completed_guest_journeys
|
|
- count_csat_score
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_deal
|
|
- by_has_payment
|
|
- by_has_id_check
|
|
- by_billing_country
|
|
- by_number_of_listings
|
|
|
|
- name: dimension_value
|
|
data_type: text
|
|
description: |
|
|
The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys created, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys started, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys completed, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys created for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys started for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys completed for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: count_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys with CSAT
|
|
(customer satisfaction score) in a given date, dimension, and value.
|
|
|
|
- name: average_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated average CSAT score in a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_between:
|
|
min_value: 0
|
|
max_value: 5
|
|
strictly: false
|
|
|
|
- name: int_kpis__metric_weekly_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the Weekly metrics associated with Guest Journeys
|
|
attributed to Check-In date at the deepest granularity.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: week
|
|
data_type: int
|
|
description: ISO week number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
include Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: text
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
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: character varying
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of daily guest journeys created, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of daily guest journeys started, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of daily guest journeys completed, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: count_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated count of guest journeys with CSAT
|
|
(customer satisfaction score) in a given date, dimension, and value.
|
|
|
|
- name: average_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Weekly accumulated average CSAT score in a given date, dimension, and value.
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_between:
|
|
min_value: 0
|
|
max_value: 5
|
|
strictly: false
|
|
|
|
- name: int_kpis__agg_weekly_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for Weekly metrics associated
|
|
to Guest Journeys attributed to Check-In date.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: week
|
|
data_type: int
|
|
description: Week number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: text
|
|
description: |
|
|
The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_guest_journeys_not_cancelled
|
|
- started_guest_journeys_not_cancelled
|
|
- completed_guest_journeys_not_cancelled
|
|
- created_guest_journeys
|
|
- started_guest_journeys
|
|
- completed_guest_journeys
|
|
- count_csat_score
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_deal
|
|
- by_has_payment
|
|
- by_has_id_check
|
|
- by_billing_country
|
|
- by_number_of_listings
|
|
|
|
- name: dimension_value
|
|
data_type: text
|
|
description: |
|
|
The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys created, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys started, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys completed, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys created for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys started for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys completed for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: count_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated count of guest journeys with CSAT
|
|
(customer satisfaction score) in a given date, dimension, and value.
|
|
|
|
- name: average_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Weekly aggregated average CSAT score in a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_between:
|
|
min_value: 0
|
|
max_value: 5
|
|
strictly: false
|
|
|
|
- name: int_kpis__metric_mtd_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date metrics associated with Guest Journeys
|
|
attributed to Check-In date at the deepest granularity.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
include Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: text
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
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: character varying
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of daily guest journeys created, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of daily guest journeys started, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of daily guest journeys completed, excluding cancelled
|
|
bookings, in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: count_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated count of guest journeys with CSAT
|
|
(customer satisfaction score) in a given date, dimension, and value..
|
|
|
|
- name: average_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date accumulated average CSAT score in a given date, dimension, and value.
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_between:
|
|
min_value: 0
|
|
max_value: 5
|
|
strictly: false
|
|
|
|
- name: int_kpis__agg_mtd_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for Month-To-Date metrics associated
|
|
to Guest Journeys attributed to Check-In date.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: text
|
|
description: |
|
|
The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_guest_journeys_not_cancelled
|
|
- started_guest_journeys_not_cancelled
|
|
- completed_guest_journeys_not_cancelled
|
|
- created_guest_journeys
|
|
- started_guest_journeys
|
|
- completed_guest_journeys
|
|
- count_csat_score
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_deal
|
|
- by_has_payment
|
|
- by_has_id_check
|
|
- by_billing_country
|
|
- by_number_of_listings
|
|
|
|
- name: dimension_value
|
|
data_type: text
|
|
description: |
|
|
The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys created, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys started, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys completed, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys created for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys started for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys completed for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: count_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated count of guest journeys with CSAT
|
|
(customer satisfaction score) in a given date, dimension, and value.
|
|
|
|
- name: average_csat_score
|
|
data_type: numeric
|
|
description: |
|
|
Month-to-date aggregated average CSAT score in a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_between:
|
|
min_value: 0
|
|
max_value: 5
|
|
strictly: false
|
|
|
|
- name: int_kpis__metric_daily_host_resolutions
|
|
description: |
|
|
This model computes the Daily Host Resolutions at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Host Resolutions transaction happened.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_host_resolution_payment_count
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily Host Resolution Payment Count in a given date and per specified dimension.
|
|
|
|
- name: xero_host_resolution_amount_paid_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Host Resolution Amount Paid, in GBP, in a given
|
|
date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_host_resolutions
|
|
description: |
|
|
This model computes the Monthly Host Resolutions at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_host_resolution_payment_count
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated Host Resolution Payment Count in a
|
|
given month and per specified dimension.
|
|
|
|
- name: xero_host_resolution_amount_paid_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Host Resolution Amount Paid, in GBP, in a
|
|
given month and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_host_resolutions
|
|
description: |
|
|
This model computes the Month-To-Date Host Resolutions at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_host_resolution_payment_count
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated Host Resolution Payment Count in a
|
|
given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_host_resolution_amount_paid_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Host Resolution Amount Paid, in GBP, in a
|
|
given month up to the given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_host_resolutions
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Host Resolutions.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- xero_host_resolution_payment_count
|
|
- xero_host_resolution_amount_paid_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_host_resolution_payment_count
|
|
data_type: bigint
|
|
description: |
|
|
The monthly Host Resolution Payment Count for a given date, dimension and value.
|
|
|
|
- name: xero_host_resolution_amount_paid_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Host Resolution Amount Paid, in GBP, for a
|
|
given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_host_resolutions
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Host Resolutions.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- xero_host_resolution_payment_count
|
|
- xero_host_resolution_amount_paid_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_host_resolution_payment_count
|
|
data_type: bigint
|
|
description: |
|
|
The month-to-date Host Resolution Payment Count for a given date, dimension and value.
|
|
|
|
- name: xero_host_resolution_amount_paid_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Host Resolution Amount Paid, in GBP, for a
|
|
given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_invoiced_revenue
|
|
description: |
|
|
This model computes the Daily Invoiced Revenue at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when the document was issued.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_booking_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Booking Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_listing_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Listing Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_verification_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Verification Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_operator_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Operator Net Fees, which include Booking,
|
|
Listing and Verification Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_e_deposit_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily E-Deposit Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_guesty_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Athena (Guesty) Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_apis_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily API Net Fees, which include E-Deposit,
|
|
and Athena (Guesty) Net Fees, in GBP, without taxes
|
|
in a given date and per specified dimension.
|
|
|
|
- name: xero_waiver_paid_back_to_host_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of daily Waiver Amount Paid Back to Hosts, in GBP,
|
|
without taxes in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_invoiced_revenue
|
|
description: |
|
|
This model computes the Monthly Invoiced Revenue at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_booking_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Booking Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_listing_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Listing Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_verification_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Verification Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_operator_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Operator Net Fees, which include Booking,
|
|
Listing and Verification Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_e_deposit_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated E-Deposit Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_guesty_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Athena (Guesty) Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_apis_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated API Net Fees, which include E-Deposit,
|
|
and Athena (Guesty) Net Fees, in GBP, without taxes
|
|
in a given month and per specified dimension.
|
|
|
|
- name: xero_waiver_paid_back_to_host_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Waiver Amount Paid Back to Hosts, in GBP,
|
|
without taxes in a given month and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_invoiced_revenue
|
|
description: |
|
|
This model computes the Month-To-Date Invoiced Revenue at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_booking_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Booking Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_listing_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Listing Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_verification_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Verification Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_operator_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Operator Net Fees, which include Booking,
|
|
Listing and Verification Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_e_deposit_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated E-Deposit Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_guesty_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Athena (Guesty) Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_apis_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated API Net Fees, which include E-Deposit,
|
|
and Athena (Guesty) Net Fees, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: xero_waiver_paid_back_to_host_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated Waiver Amount Paid Back to Hosts, in GBP, without taxes
|
|
in a given month up to the given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_monthly_invoiced_revenue
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Invoiced Revenue.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- xero_booking_net_fees_in_gbp
|
|
- xero_listing_net_fees_in_gbp
|
|
- xero_verification_net_fees_in_gbp
|
|
- xero_operator_net_fees_in_gbp
|
|
- xero_e_deposit_net_fees_in_gbp
|
|
- xero_guesty_net_fees_in_gbp
|
|
- xero_apis_net_fees_in_gbp
|
|
- xero_waiver_paid_back_to_host_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_booking_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Booking Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_listing_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Listing Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_verification_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Verification Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_operator_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Operator Net Fees, which include Booking,
|
|
Listing and Verification Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_e_deposit_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly E-Deposit Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_guesty_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Athena (Guesty) Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_apis_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly API Net Fees, which include E-Deposit,
|
|
and Athena (Guesty) Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_waiver_paid_back_to_host_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly Waiver Amount Paid Back to Hosts, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: int_kpis__agg_mtd_invoiced_revenue
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Invoiced Revenue.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- xero_booking_net_fees_in_gbp
|
|
- xero_listing_net_fees_in_gbp
|
|
- xero_verification_net_fees_in_gbp
|
|
- xero_operator_net_fees_in_gbp
|
|
- xero_e_deposit_net_fees_in_gbp
|
|
- xero_guesty_net_fees_in_gbp
|
|
- xero_apis_net_fees_in_gbp
|
|
- xero_waiver_paid_back_to_host_in_gbp
|
|
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: xero_booking_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Booking Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_listing_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Listing Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_verification_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Verification Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_operator_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Operator Net Fees, which include Booking,
|
|
Listing and Verification Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_e_deposit_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date E-Deposit Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_guesty_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Athena (Guesty) Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_apis_net_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date API Net Fees, which include E-Deposit,
|
|
and Athena (Guesty) Net Fees, in GBP, without taxes
|
|
for a given date, dimension and value.
|
|
|
|
- name: xero_waiver_paid_back_to_host_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date Waiver Amount Paid Back to Hosts, in GBP,
|
|
without taxes for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_deals
|
|
description: |
|
|
This model computes the Daily Deal metrics at the deepest granularity.
|
|
|
|
Be aware that this Deal entity will differ from how the rest of models
|
|
usually operate. This is because we compute Deal metrics, thus it does
|
|
not make sense to compute these at Deal level.
|
|
|
|
Also, Deal metrics at daily level already contain the time dimension
|
|
aggregates needed, thus we won't have mtd or monthly equivalent models,
|
|
but rather just select from this daily model the needed days to recover
|
|
the necessary information.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- main_billing_country_iso_3_per_deal,
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- main_billing_country_iso_3_per_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date containing the Deal metrics.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: new_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of new deals in a given date and per specified dimension.
|
|
|
|
- name: never_booked_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of never booked deals in a given date and per specified dimension.
|
|
|
|
- name: first_time_booked_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of first-time booked deals in a given date and per specified dimension.
|
|
|
|
- name: active_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of active deals in a given date and per specified dimension.
|
|
|
|
- name: inactive_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of inactive deals in a given date and per specified dimension.
|
|
|
|
- name: churning_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of churning deals in a given date and per specified dimension.
|
|
|
|
- name: reactivated_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of reactivated deals in a given date and per specified dimension.
|
|
|
|
- name: deals_booked_in_month
|
|
data_type: bigint
|
|
description: |
|
|
Count of deals booked within the month in a given date and per specified dimension.
|
|
|
|
- name: deals_booked_in_6_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of deals booked within the past 6 months in a given date and per specified dimension.
|
|
|
|
- name: deals_booked_in_12_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of deals booked within the past 12 months in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_daily_deals
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Daily Deal metrics.
|
|
|
|
The primary key of this model is date, dimension
|
|
and dimension_value.
|
|
|
|
Be aware that this Deal entity will differ from how the rest of models
|
|
usually operate. This is because we compute Deal metrics, thus it does
|
|
not make sense to compute these at Deal level.
|
|
|
|
Also, Deal metrics at daily level already contain the time dimension
|
|
aggregates needed, thus we won't have mtd or monthly equivalent models,
|
|
but rather just select from this daily model the needed days to recover
|
|
the necessary information.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date containing the Deal metrics.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- new_deals
|
|
- never_booked_deals
|
|
- first_time_booked_deals
|
|
- active_deals
|
|
- churning_deals
|
|
- inactive_deals
|
|
- reactivated_deals
|
|
- deals_booked_in_month
|
|
- deals_booked_in_6_months
|
|
- deals_booked_in_12_months
|
|
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_end_of_month
|
|
data_type: boolean
|
|
description: True if it's end of month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_current_month
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the current month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_month_to_date
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the scope of month-to-date, false otherwise.
|
|
The scope of month-to-date takes into account both 1) a date being in
|
|
the current month or 2) a date corresponding to the same month of the
|
|
previous year, which day number cannot be higher than yesterday's day
|
|
number.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: new_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of new deals for a given date, dimension and value.
|
|
|
|
- name: never_booked_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of never booked deals for a given date, dimension and value.
|
|
|
|
- name: first_time_booked_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of first-time booked deals for a given date, dimension and value.
|
|
|
|
- name: active_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of active deals for a given date, dimension and value.
|
|
|
|
- name: inactive_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of inactive deals for a given date, dimension and value.
|
|
|
|
- name: churning_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of churning deals for a given date, dimension and value.
|
|
|
|
- name: reactivated_deals
|
|
data_type: bigint
|
|
description: |
|
|
Count of reactivated deals for a given date, dimension and value.
|
|
|
|
- name: deals_booked_in_month
|
|
data_type: bigint
|
|
description: |
|
|
Count of deals booked within the month for a given date, dimension and value.
|
|
|
|
- name: deals_booked_in_6_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of deals booked within the past 6 months for a given date, dimension and value.
|
|
|
|
- name: deals_booked_in_12_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of deals booked within the past 12 months for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_listings
|
|
description: |
|
|
This model computes the Daily Listing metrics at the deepest granularity.
|
|
|
|
Listing metrics at daily level already contain the time dimension
|
|
aggregates needed, thus we won't have mtd or monthly equivalent models,
|
|
but rather just select from this daily model the needed days to recover
|
|
the necessary information.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date containing the Listing metrics.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Listing level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: new_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of new listings in a given date and per specified dimension.
|
|
|
|
- name: never_booked_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of never booked listings in a given date and per specified dimension.
|
|
|
|
- name: first_time_booked_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of first-time booked listings in a given date and per specified dimension.
|
|
|
|
- name: active_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of active listings in a given date and per specified dimension.
|
|
|
|
- name: inactive_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of inactive listings in a given date and per specified dimension.
|
|
|
|
- name: churning_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of churning listings in a given date and per specified dimension.
|
|
|
|
- name: reactivated_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of reactivated listings in a given date and per specified dimension.
|
|
|
|
- name: listings_booked_in_month
|
|
data_type: bigint
|
|
description: |
|
|
Count of listings booked within the month in a given date and per specified dimension.
|
|
|
|
- name: listings_booked_in_6_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of listings booked within the past 6 months in a given date and per specified dimension.
|
|
|
|
- name: listings_booked_in_12_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of listings booked within the past 12 months in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__agg_daily_listings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Daily Listing metrics.
|
|
|
|
The primary key of this model is date, dimension
|
|
and dimension_value.
|
|
|
|
Listing metrics at daily level already contain the time dimension
|
|
aggregates needed, thus we won't have mtd or monthly equivalent models,
|
|
but rather just select from this daily model the needed days to recover
|
|
the necessary information.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date containing the Listing metrics.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- new_listings
|
|
- never_booked_listings
|
|
- first_time_booked_listings
|
|
- active_listings
|
|
- churning_listings
|
|
- inactive_listings
|
|
- reactivated_listings
|
|
- listings_booked_in_month
|
|
- listings_booked_in_6_months
|
|
- listings_booked_in_12_months
|
|
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_end_of_month
|
|
data_type: boolean
|
|
description: True if it's end of month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_current_month
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the current month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_month_to_date
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the scope of month-to-date, false otherwise.
|
|
The scope of month-to-date takes into account both 1) a date being in
|
|
the current month or 2) a date corresponding to the same month of the
|
|
previous year, which day number cannot be higher than yesterday's day
|
|
number.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: new_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of new listings for a given date, dimension and value.
|
|
|
|
- name: never_booked_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of never booked listings for a given date, dimension and value.
|
|
|
|
- name: first_time_booked_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of first-time booked listings for a given date, dimension and value.
|
|
|
|
- name: active_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of active listings for a given date, dimension and value.
|
|
|
|
- name: inactive_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of inactive listings for a given date, dimension and value.
|
|
|
|
- name: churning_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of churning listings for a given date, dimension and value.
|
|
|
|
- name: reactivated_listings
|
|
data_type: bigint
|
|
description: |
|
|
Count of reactivated listings for a given date, dimension and value.
|
|
|
|
- name: listings_booked_in_month
|
|
data_type: bigint
|
|
description: |
|
|
Count of listings booked within the month for a given date, dimension and value.
|
|
|
|
- name: listings_booked_in_6_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of listings booked within the past 6 months for a given date, dimension and value.
|
|
|
|
- name: listings_booked_in_12_months
|
|
data_type: bigint
|
|
description: |
|
|
Count of listings booked within the past 12 months for a given date, dimension and value.
|
|
|
|
- name: int_kpis__dimension_date_product_guest
|
|
description: |
|
|
This model computes a cross join of dates with all combinations of
|
|
guest products dimensions.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date_day
|
|
- has_payment
|
|
- has_id_check
|
|
columns:
|
|
- name: date_day
|
|
data_type: date
|
|
description: "Date of when Guest Journeys have been completed."
|
|
tests:
|
|
- not_null
|
|
|
|
- name: date_week
|
|
data_type: string
|
|
description: "Week number of when Guest Journeys have been completed."
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: int_kpis__product_guest_daily_metrics
|
|
description: |
|
|
This model computes the Daily Guest Metrics at the deepest granularity.
|
|
Here all metrics are attributed to the Check-in Date of the associated
|
|
booking, except for payments which are attributed to payment date.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date_day,
|
|
- py_date_day,
|
|
- id_deal,
|
|
- has_id_check.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date_day
|
|
- py_date_day
|
|
- has_payment
|
|
- has_id_check
|
|
columns:
|
|
- name: date_day
|
|
data_type: date
|
|
description: "Date of when Guest Journeys have been completed."
|
|
tests:
|
|
- not_null
|
|
|
|
- name: date_week
|
|
data_type: string
|
|
description: "Week number of when Guest Journeys have been completed."
|
|
tests:
|
|
- not_null
|
|
|
|
- name: py_date_day
|
|
data_type: date
|
|
description: |
|
|
Date on the previous year of when Guest Journeys have been completed.
|
|
Note that this date can be NULL for leap days (29th February)
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
|
|
- name: count_csat_score
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys with CSAT (customer satisfaction score)
|
|
in a given date and per specified dimension.
|
|
|
|
- name: average_csat_score
|
|
data_type: bigint
|
|
description: |
|
|
Average daily CSAT score in a given date and per specified dimension.
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of deposit fees paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of waiver payments paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of checkin cover fees paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of total payments paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: py_created_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created (excluding canceled bookings)
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_started_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started (excluding canceled bookings)
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_completed_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed (excluding canceled bookings)
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created on the same date in the previous year,
|
|
segmented by the specified dimension.
|
|
|
|
- name: py_started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started on the same date in the previous year,
|
|
segmented by the specified dimension.
|
|
|
|
- name: py_completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed on the same date in the previous year,
|
|
segmented by the specified dimension.
|
|
|
|
- name: py_count_csat_score
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys with CSAT (customer satisfaction score)
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_average_csat_score
|
|
data_type: bigint
|
|
description: |
|
|
Average daily CSAT score on the same date in the previous year,
|
|
segmented by the specified dimension.
|
|
|
|
- name: py_deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of deposit fees paid by guests, excluding taxes, in GBP
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of waiver payments paid by guests, excluding taxes, in GBP
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of check-in cover fees paid by guests, excluding taxes, in GBP
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: py_total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of total payments paid by guests, excluding taxes, in GBP
|
|
on the same date in the previous year, segmented by the specified dimension.
|
|
|
|
- name: int_kpis__metric_daily_new_dash_created_services
|
|
description: |
|
|
This model computes the Daily Created Services at the deepest granularity.
|
|
It only retrieves services that come from users that are in New Dash, as well
|
|
as it only considers services created after the user has moved to New Dash.
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_booking,
|
|
- service_name
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_booking
|
|
- service_name
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Services have been created.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_booking
|
|
data_type: bigint
|
|
description: Unique identifier of the Booking.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: service_name
|
|
data_type: string
|
|
description: Name of the created service.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_user_host
|
|
data_type: string
|
|
description: Unique identifier of the user that acts as Host.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_upgraded_service
|
|
data_type: string
|
|
description: |
|
|
Whether the service is an upgraded version of the
|
|
default. In other words, if it's not Basic Screening.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "YES"
|
|
- "NO"
|
|
|
|
- name: new_dash_version
|
|
data_type: string
|
|
description: |
|
|
The version of the New Dash. It corresponds to the
|
|
release or migration phase from user point of view.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_services
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily services created in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_new_dash_created_services
|
|
description: |
|
|
This model computes the Monthly Created Services at the
|
|
deepest granularity.
|
|
It only retrieves services that come from users that are in New Dash, as well
|
|
as it only considers services created after the user has moved to New Dash.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- service_name,
|
|
- id_user_host,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- service_name
|
|
- id_user_host
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: service_name
|
|
data_type: string
|
|
description: Name of the created service.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_user_host
|
|
data_type: string
|
|
description: Unique identifier of the user that acts as Host.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_upgraded_service
|
|
data_type: string
|
|
description: |
|
|
Whether the service is an upgraded version of the
|
|
default. In other words, if it's not Basic Screening.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "YES"
|
|
- "NO"
|
|
|
|
- name: new_dash_version
|
|
data_type: string
|
|
description: |
|
|
The version of the New Dash. It corresponds to the
|
|
release or migration phase from user point of view.
|
|
tests:
|
|
- not_null
|
|
|
|
- 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.
|
|
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: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_services
|
|
data_type: bigint
|
|
description: |
|
|
Count of services created in a given month and per specified dimension.
|
|
|
|
- name: booking_with_created_services_count
|
|
data_type: bigint
|
|
description: |
|
|
Count of unique bookings in a given month and per specified dimension.
|
|
This is an approximation to booking count since different services can
|
|
apply to the same booking and these do not need to be created in the same
|
|
time period. Therefore, it's not an additive metric.
|
|
|
|
- name: int_kpis__agg_monthly_new_dash_created_services
|
|
description: |
|
|
This model computes the dimension aggregation for Monthly Created Services.
|
|
It only retrieves services that come from users that are in New Dash, as well
|
|
as it only considers services created after the user has moved to New Dash.
|
|
The primary key of this model is end_date, dimension and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_services
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
- by_new_dash_version
|
|
- by_has_upgraded_service
|
|
- by_service
|
|
- by_host
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_services
|
|
data_type: bigint
|
|
description: The monthly created services for a given date range, dimension and value.
|
|
|
|
- name: booking_with_created_services_count
|
|
data_type: bigint
|
|
description: |
|
|
The monthly bookings with created services for a given date range, dimension and value.
|
|
This is an approximation to booking count since different services can
|
|
apply to the same booking and these do not need to be created in the same
|
|
time period. Therefore, it's not an additive metric.
|
|
|
|
- name: int_kpis__agg_daily_new_dash_created_services
|
|
description: |
|
|
This model computes the dimension aggregation for Daily Created Services.
|
|
It only retrieves services that come from users that are in New Dash, as well
|
|
as it only considers services created after the user has moved to New Dash.
|
|
The primary key of this model is date, dimension and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: |
|
|
The daily date acting as time range for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_names:
|
|
- created_services
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
- by_new_dash_version
|
|
- by_has_upgraded_service
|
|
- by_service
|
|
- by_host
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_services
|
|
data_type: bigint
|
|
description: The daily created services for a given date, dimension and value.
|
|
|
|
- name: booking_with_created_services_count
|
|
data_type: bigint
|
|
description: |
|
|
The daily bookings with created services for a given date, dimension and value.
|
|
This is an approximation to booking count since different services can
|
|
apply to the same booking and these do not need to be created in the same
|
|
time period. Therefore, it's not an additive metric.
|
|
|
|
- name: int_kpis__product_new_dash_agg_metrics
|
|
description: |
|
|
This model serves as the skeleton for New Dash metrics and dimensions.
|
|
This model computes the time granularity aggregation per previously computed
|
|
dimension aggregation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- time_granularity
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range specified in the time_granularity
|
|
for the dimension, dimension_value and metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: time_granularity
|
|
data_type: string
|
|
description: The time dimension.
|
|
tests:
|
|
- accepted_values:
|
|
values:
|
|
- daily
|
|
- monthly
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
- by_new_dash_version
|
|
- by_has_upgraded_service
|
|
- by_service
|
|
- by_host
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_services
|
|
data_type: bigint
|
|
description: The daily created services for a given date, dimension and value.
|
|
|
|
- name: booking_with_created_services_count
|
|
data_type: bigint
|
|
description: |
|
|
The daily bookings with created services for a given date, dimension and value.
|
|
This is an approximation to booking count since different services can
|
|
apply to the same booking and these do not need to be created in the same
|
|
time period. Therefore, it's not an additive metric.
|