data-dwh-dbt-project/models/intermediate/cross
Oriol Roqué Paniagua ca8334f1da Merged PR 2236: Refactor of already exposed metrics: listings, deals and guest journeys
Following yesterday's refactor of booking metrics, this PR provides a refactor of already exposed metrics: listings, deals and guest journeys.
-> Data is consistent with values already exposed.

Changes:
- for `int_core__mtd_listing_metrics`, `int_core__mtd_deal_metrics` and `int_core__mtd_guest_journey_metrics`:
1. remove the computation of the previous year metric value and the relative increment (last part of the query)
2. re-apply the formatting
- for `int_mtd_vs_previous_year_metrics`:
1. Reference listings, deals and GJ models
2. Include the metrics for these types in the `plain_kpi_combination` CTE
3. Add the computation of previous year and relative increment using the macro
- for `int_core__mtd_aggregated_metrics`
1. Remove and "hardcode" sources since all metrics now depend exclusively of `int_mtd_vs_previous_year_metrics`

This PR does not alter the exposed metrics in the production report. It does not aim to change the name of the reporting/intermediate models that expose the information, it will be done in a separated PR.
Documentation: https://www.notion.so/knowyourguest-superhog/Refactoring-Business-KPIs-5deb6aadddb34884ae90339402ac16e3

Related work items: #18202
2024-07-09 13:00:43 +00:00
..
int_daily_currency_exchange_rates.sql go back to var, made a mistake in the last commit 2024-06-17 11:32:20 +02:00
int_dates.sql start cross folder in int to stop piling models at int root 2024-06-14 16:26:18 +02:00
int_dates_by_deal.sql Merged PR 2164: Adding booking metrics by deal id for business kpis 2024-07-01 16:00:14 +00:00
int_dates_mtd.sql Merged PR 2158: Allow last day of the month to appear on 1st of month 2024-07-01 07:53:38 +00:00
int_monthly_guest_revenue_history_by_deal.sql Merged PR 2221: Computes (paid) guest revenue metric - fixed 2024-07-08 11:02:02 +00:00
int_mtd_guest_revenue_metrics.sql Merged PR 2221: Computes (paid) guest revenue metric - fixed 2024-07-08 11:02:02 +00:00
int_mtd_vs_previous_year_metrics.sql Merged PR 2236: Refactor of already exposed metrics: listings, deals and guest journeys 2024-07-09 13:00:43 +00:00
int_simple_exchange_rates.sql simple model 2024-06-14 16:44:40 +02:00
schema.yml Merged PR 2232: KPI refactor - 1st step, bookings 2024-07-08 15:58:36 +00:00