fixed int_monthly_12m_window_contribution_by_deal
This commit is contained in:
parent
abd4a4e8f2
commit
d76b8ac205
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ with
|
||||||
int_monthly_aggregated_metrics_history_by_deal as (
|
int_monthly_aggregated_metrics_history_by_deal as (
|
||||||
select * from {{ ref("int_monthly_aggregated_metrics_history_by_deal") }}
|
select * from {{ ref("int_monthly_aggregated_metrics_history_by_deal") }}
|
||||||
),
|
),
|
||||||
agg_metrics_by_deal_over_12_months as (
|
aggregated_metrics_by_deal_over_12_months as (
|
||||||
select
|
select
|
||||||
am.date,
|
am.date,
|
||||||
am.id_deal,
|
am.id_deal,
|
||||||
|
|
@ -73,7 +73,7 @@ with
|
||||||
) over (partition by ambd.date)
|
) over (partition by ambd.date)
|
||||||
as avg_global_listings_booked_in_month_preceding_12_months
|
as avg_global_listings_booked_in_month_preceding_12_months
|
||||||
|
|
||||||
from agg_metrics_by_deal_over_12_months ambd
|
from aggregated_metrics_by_deal_over_12_months ambd
|
||||||
)
|
)
|
||||||
select
|
select
|
||||||
id_deal,
|
id_deal,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue