data-dwh-dbt-project/models/intermediate/core
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_core__accommodation.sql Merged PR 2125: Fixing accommodation host 2024-06-26 14:47:15 +00:00
int_core__booking_charge_events.sql Merged PR 2029: Guest Journey - start date based on used link 2024-06-13 14:53:58 +00:00
int_core__bookings.sql a few quick and dirty improvements 2024-05-10 00:31:27 +02:00
int_core__check_in_cover_prices.sql propagating renames 2024-05-08 12:03:44 +02:00
int_core__check_in_cover_users.sql Merged PR 2201: Fixing errors raised by texts 2024-07-05 15:12:04 +00:00
int_core__country.sql Merged PR 2077: Adding Country to intermediate 2024-06-19 15:34:15 +00:00
int_core__deal_id_master_list.sql docs and moving stuff 2024-04-08 09:44:32 +02:00
int_core__duplicate_bookings.sql a few quick and dirty improvements 2024-05-10 00:31:27 +02:00
int_core__guest_satisfaction_responses.sql Fixed join on model taking id_verification instead of id_verification_request 2024-07-05 17:24:06 +02:00
int_core__monthly_accommodation_history_by_deal.sql Merged PR 2172: Adding accommodation metrics by deal id 2024-07-02 09:32:52 +00:00
int_core__monthly_aggregated_metrics_history_by_deal.sql Merged PR 2179: Computes aggregated metrics by deal id and exposes it to reporting 2024-07-03 07:06:34 +00:00
int_core__monthly_booking_history_by_deal.sql Merged PR 2164: Adding booking metrics by deal id for business kpis 2024-07-01 16:00:14 +00:00
int_core__monthly_guest_journey_history_by_deal.sql Merged PR 2195: Computes GJ with Payment and GJ Payment Rate metrics 2024-07-04 09:54:41 +00:00
int_core__mtd_accommodation_lifecycle.sql Merged PR 2125: Fixing accommodation host 2024-06-26 14:47:15 +00:00
int_core__mtd_accommodation_metrics.sql Merged PR 2236: Refactor of already exposed metrics: listings, deals and guest journeys 2024-07-09 13:00:43 +00:00
int_core__mtd_aggregated_metrics.sql Merged PR 2236: Refactor of already exposed metrics: listings, deals and guest journeys 2024-07-09 13:00:43 +00:00
int_core__mtd_booking_metrics.sql Merged PR 2232: KPI refactor - 1st step, bookings 2024-07-08 15:58:36 +00:00
int_core__mtd_deal_lifecycle.sql Merged PR 2107: Adds host lifecycle metrics into biz kpis 2024-06-25 12:20:59 +00:00
int_core__mtd_deal_metrics.sql Merged PR 2236: Refactor of already exposed metrics: listings, deals and guest journeys 2024-07-09 13:00:43 +00:00
int_core__mtd_guest_journey_metrics.sql Merged PR 2236: Refactor of already exposed metrics: listings, deals and guest journeys 2024-07-09 13:00:43 +00:00
int_core__price_plans.sql docs and moving stuff 2024-04-08 09:44:32 +02:00
int_core__unified_user.sql add phone number 2024-06-10 16:14:07 +02:00
int_core__unique_accommodation_to_user.sql Merged PR 2125: Fixing accommodation host 2024-06-26 14:47:15 +00:00
int_core__verification_payments.sql remove old table from cte 2024-06-18 11:31:59 +02:00
int_core__verification_request_completed_date.sql Merged PR 2028: guest journey estimated completed date 2024-06-13 13:30:22 +00:00
int_core__verification_request_completeness.sql Merged PR 2020: Verification request completeness for intermediate steps + schema documentation 2024-06-13 08:14:11 +00:00
int_core__verification_requests.sql Merged PR 2029: Guest Journey - start date based on used link 2024-06-13 14:53:58 +00:00
int_core__vr_check_in_cover.sql Merged PR 2029: Guest Journey - start date based on used link 2024-06-13 14:53:58 +00:00
schema.yaml Merged PR 2201: Fixing errors raised by texts 2024-07-05 15:12:04 +00:00