Merged PR 4418: New metric - Live Deals
# Description Adds new metric - live deals # 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: #27712
This commit is contained in:
parent
4fc0ea71c6
commit
399feba9af
2 changed files with 15 additions and 4 deletions
|
|
@ -100,6 +100,15 @@
|
|||
},
|
||||
{
|
||||
"order_by": 20,
|
||||
"metric": "Live Deals",
|
||||
"value": "live_deals",
|
||||
"previous_year_value": "previous_year_live_deals",
|
||||
"relative_increment": "relative_increment_live_deals",
|
||||
"number_format": "integer",
|
||||
"increment_sign_format": "positive",
|
||||
},
|
||||
{
|
||||
"order_by": 21,
|
||||
"metric": "New Deals",
|
||||
"value": "new_deals",
|
||||
"previous_year_value": "previous_year_new_deals",
|
||||
|
|
@ -108,7 +117,7 @@
|
|||
"increment_sign_format": "positive",
|
||||
},
|
||||
{
|
||||
"order_by": 21,
|
||||
"order_by": 22,
|
||||
"metric": "Deals Booked in Month",
|
||||
"value": "deals_booked_in_month",
|
||||
"previous_year_value": "previous_year_deals_booked_in_month",
|
||||
|
|
@ -117,7 +126,7 @@
|
|||
"increment_sign_format": "positive",
|
||||
},
|
||||
{
|
||||
"order_by": 22,
|
||||
"order_by": 23,
|
||||
"metric": "Deals Booked in 6 Months",
|
||||
"value": "deals_booked_in_6_months",
|
||||
"previous_year_value": "previous_year_deals_booked_in_6_months",
|
||||
|
|
@ -126,7 +135,7 @@
|
|||
"increment_sign_format": "positive",
|
||||
},
|
||||
{
|
||||
"order_by": 23,
|
||||
"order_by": 24,
|
||||
"metric": "Deals Booked in 12 Months",
|
||||
"value": "deals_booked_in_12_months",
|
||||
"previous_year_value": "previous_year_deals_booked_in_12_months",
|
||||
|
|
@ -135,7 +144,7 @@
|
|||
"increment_sign_format": "positive",
|
||||
},
|
||||
{
|
||||
"order_by": 24,
|
||||
"order_by": 25,
|
||||
"metric": "Churning Deals",
|
||||
"value": "churning_deals",
|
||||
"previous_year_value": "previous_year_churning_deals",
|
||||
|
|
|
|||
|
|
@ -227,6 +227,7 @@ with
|
|||
deals.deals_booked_in_month,
|
||||
deals.deals_booked_in_6_months,
|
||||
deals.deals_booked_in_12_months,
|
||||
deals.live_deals,
|
||||
|
||||
-- LISTINGS (ACCOMMODATIONS) --
|
||||
listings.new_listings,
|
||||
|
|
@ -504,6 +505,7 @@ select
|
|||
{{ calculate_safe_relative_increment("deals_booked_in_month") }},
|
||||
{{ calculate_safe_relative_increment("deals_booked_in_6_months") }},
|
||||
{{ calculate_safe_relative_increment("deals_booked_in_12_months") }},
|
||||
{{ calculate_safe_relative_increment("live_deals") }},
|
||||
|
||||
-- LISTINGS --
|
||||
{{ calculate_safe_relative_increment("new_listings") }},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue