Created models for new guest kpis
This commit is contained in:
parent
36432024b5
commit
36a1428b23
1 changed files with 102 additions and 0 deletions
|
|
@ -3075,3 +3075,105 @@ models:
|
||||||
- name: cancelled_bookings
|
- name: cancelled_bookings
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
description: The month-to-date cancelled bookings for a given date, dimension and value.
|
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: boolean
|
||||||
|
description: True if there has been any guest payments on the guest journey.
|
||||||
|
|
||||||
|
- name: has_id_check
|
||||||
|
data_type: boolean
|
||||||
|
description: True if there verification in the guest journey
|
||||||
|
includes Government Id Check for the bookings.
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue