Merged PR 4309: Cancelled Bookings KPIs rework
# Description Exposes new metrics: * Created Bookings (Excl. Cancelled) * Cancelled Created Bookings * Check Out Bookings (Excl. Cancelled) * Cancelled Check Out Bookings Re-naming of existing metrics: * Created Bookings -> Total Created Bookings * Checkout Bookings -> Total Check Out Bookings Removes exposure of previous Cancelled Bookings. In the monthly by deal model, it's hardcoded still - need to change PBI to remove safely. This will be done later on once we remove the Cancelled Bookings models. Adapts the existing tests on KPIs to accommodate for the changes by including new metrics. Also, I've set the detector to 5 (from 8) since it's been a while this has not triggered thus might be worth the effort to have more detection capabilities. # 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: #24637
This commit is contained in:
parent
cc86565b02
commit
fe3a5c9fe9
6 changed files with 155 additions and 87 deletions
|
|
@ -15,12 +15,15 @@ than the value reported in the Global dimension.
|
|||
{% set tolerance_threshold = 0.000001 %}
|
||||
|
||||
{% set additive_metric_names = (
|
||||
"Cancelled Bookings",
|
||||
"Bookings Churn Rate",
|
||||
"Cancelled Check Out Bookings",
|
||||
"Cancelled Created Bookings",
|
||||
"Check-In Hero Revenue",
|
||||
"Checkout Bookings",
|
||||
"Check Out Bookings (Excl. Cancelled)",
|
||||
"Churning Deals",
|
||||
"Churning Listings",
|
||||
"Created Bookings",
|
||||
"Created Bookings (Excl. Cancelled)",
|
||||
"Damage Host-Waiver Payments",
|
||||
"Deals Booked in 12 Months",
|
||||
"Deals Booked in 6 Months",
|
||||
"Deals Booked in Month",
|
||||
|
|
@ -36,9 +39,9 @@ than the value reported in the Global dimension.
|
|||
"Host Resolutions Amount Paid",
|
||||
"Host Resolutions Payment Count",
|
||||
"Invoiced APIs Revenue",
|
||||
"Invoiced Athena Revenue",
|
||||
"Invoiced Booking Fees Revenue",
|
||||
"Invoiced E-Deposit Revenue",
|
||||
"Invoiced Athena Revenue",
|
||||
"Invoiced Listing Fees Revenue",
|
||||
"Invoiced Operator Revenue",
|
||||
"Invoiced Verification Fees Revenue",
|
||||
|
|
@ -47,13 +50,14 @@ than the value reported in the Global dimension.
|
|||
"Listings Booked in Month",
|
||||
"New Deals",
|
||||
"New Listings",
|
||||
"Revenue Churn Rate",
|
||||
"Revenue Retained",
|
||||
"Revenue Retained Post-Resolutions",
|
||||
"Total Check Out Bookings",
|
||||
"Total Created Bookings",
|
||||
"Total Revenue",
|
||||
"Damage Host-Waiver Payments",
|
||||
"Waiver Revenue",
|
||||
"Waiver Retained",
|
||||
"Revenue Churn Rate",
|
||||
"Bookings Churn Rate",
|
||||
"Listings Churn Rate",
|
||||
) %}
|
||||
|
||||
with
|
||||
|
|
|
|||
|
|
@ -13,9 +13,11 @@ point it becomes too sensitive, just adapt the following parameters.
|
|||
-- since there will be no history to check against.
|
||||
-- Do NOT include rates/percentages/ratios.
|
||||
{% set metric_names = (
|
||||
"Cancelled Bookings",
|
||||
"Checkout Bookings",
|
||||
"Created Bookings",
|
||||
"Cancelled Check Out Bookings",
|
||||
"Cancelled Created Bookings",
|
||||
"Check Out Bookings (Excl. Cancelled)",
|
||||
"Created Bookings (Excl. Cancelled)",
|
||||
"Damage Host-Waiver Payments",
|
||||
"Deposit Fees Revenue",
|
||||
"Est. Billable Bookings",
|
||||
"First Time Booked Deals",
|
||||
|
|
@ -28,16 +30,19 @@ point it becomes too sensitive, just adapt the following parameters.
|
|||
"Host Resolutions Amount Paid",
|
||||
"Host Resolutions Payment Count",
|
||||
"Invoiced APIs Revenue",
|
||||
"Invoiced Athena Revenue",
|
||||
"Invoiced Booking Fees Revenue",
|
||||
"Invoiced E-Deposit Revenue",
|
||||
"Invoiced Athena Revenue",
|
||||
"Invoiced Listing Fees Revenue",
|
||||
"Invoiced Operator Revenue",
|
||||
"Invoiced Verification Fees Revenue",
|
||||
"New Deals",
|
||||
"New Listings",
|
||||
"Revenue Retained",
|
||||
"Revenue Retained Post-Resolutions",
|
||||
"Total Check Out Bookings",
|
||||
"Total Created Bookings",
|
||||
"Total Revenue",
|
||||
"Damage Host-Waiver Payments",
|
||||
"Waiver Revenue",
|
||||
"Waiver Retained",
|
||||
) %}
|
||||
|
|
@ -52,7 +57,7 @@ point it becomes too sensitive, just adapt the following parameters.
|
|||
-- thus it will be more tolerant.
|
||||
-- A lower value means that the chances of detecting outliers
|
||||
-- and false positives will be higher. Recommended around 10.
|
||||
{% set detector_tolerance = 8 %}
|
||||
{% set detector_tolerance = 5 %}
|
||||
|
||||
-- Specify here the number of days in the past that will be used
|
||||
-- to compare against. Keep in mind that we only keep the daily
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue