fixed int_monthly_12m_window_contribution_by_deal

This commit is contained in:
Joaquin 2024-11-05 12:53:27 +01:00
parent abd4a4e8f2
commit d76b8ac205

View file

@ -3,7 +3,7 @@ with
int_monthly_aggregated_metrics_history_by_deal as (
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
am.date,
am.id_deal,
@ -73,7 +73,7 @@ with
) over (partition by ambd.date)
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
id_deal,