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:
Oriol Roqué Paniagua 2025-02-17 07:48:11 +00:00
parent 4fc0ea71c6
commit 399feba9af
2 changed files with 15 additions and 4 deletions

View file

@ -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") }},