Update to listing count in new dash overview

This commit is contained in:
Joaquin 2025-04-03 16:00:43 +02:00
parent 4bef83f432
commit 82829db3d2
6 changed files with 55 additions and 46 deletions

View file

@ -7,7 +7,7 @@
select
-- Unique Key --
d.first_day_month as start_date,
d.date as end_date,
d.last_day_month as end_date,
{{ dimension.dimension }} as dimension,
{{ dimension.dimension_value }} as dimension_value,
-- Metrics --
@ -16,7 +16,7 @@
left join
{{ ref("int_kpis__metric_daily_new_dash_created_bookings") }} as dcb
on dcb.date = d.date
where d.is_end_of_month = true and dcb.id_booking is not null
where dcb.id_booking is not null
group by 1, 2, 3, 4
{% if not loop.last %}
union all

View file

@ -7,7 +7,7 @@
select
-- Unique Key --
d.first_day_month as start_date,
d.date as end_date,
d.last_day_month as end_date,
{{ dimension.dimension }} as dimension,
{{ dimension.dimension_value }} as dimension_value,
-- Metrics --
@ -16,7 +16,7 @@
left join
{{ ref("int_kpis__metric_daily_new_dash_created_bookings") }} as dcb
on dcb.date = d.date
where d.is_end_of_week = true and dcb.id_booking is not null
where dcb.id_booking is not null
group by 1, 2, 3, 4
{% if not loop.last %}
union all