Merged PR 3461: Creates models for listing metrics
# Description Adds listing metrics model. It's a bit similar as the Deal metrics, but here we can aggregate by deal :) I'm aware that int_kpis__metric_daily_listings takes quite a bit (3 min). To be optimised later on. # 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. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] 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: #23567
This commit is contained in:
parent
dada9c289a
commit
335ba9a29b
5 changed files with 484 additions and 1 deletions
|
|
@ -11,13 +11,13 @@
|
|||
select
|
||||
-- Unique Key --
|
||||
ldl.date,
|
||||
-- Dimensions --
|
||||
coalesce(
|
||||
icd.main_billing_country_iso_3_per_deal, 'UNSET'
|
||||
) as main_billing_country_iso_3_per_deal,
|
||||
coalesce(
|
||||
icmas.active_accommodations_per_deal_segmentation, 'UNSET'
|
||||
) as active_accommodations_per_deal_segmentation,
|
||||
-- Metrics --
|
||||
count(
|
||||
distinct case
|
||||
when ldl.deal_lifecycle_state = '01-New' then ldl.id_deal else null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue