data-dwh-dbt-project/models
Oriol Roqué Paniagua 409ac47591 Merged PR 2232: KPI refactor - 1st step, bookings
First step on refactor of kpis:
- Remove relative incremental vs. previous year computation from the source model (`mtd_booking_metrics`, in this case)
- Aggregate the source mtd global metrics models into a single model: `int_mtd_vs_previous_year_metrics` (to enable multi-source weighted metric computation) and compute previous year value and relative increment. Now this logic is encapsulated into a macro `calculate_safe_relative_increment`, easing readability and providing a bit more robustness.
- End-to-end continuity to not break the existing dashboard display in `int_core__mtd_aggregated_metrics`

This is a substep of the global change. All info can be found in the documentation [here](https://www.notion.so/knowyourguest-superhog/Refactoring-Business-KPIs-5deb6aadddb34884ae90339402ac16e3)

Related work items: #18202
2024-07-08 15:58:36 +00:00
..
intermediate Merged PR 2232: KPI refactor - 1st step, bookings 2024-07-08 15:58:36 +00:00
reporting propagate field in reporting layer 2024-07-08 16:48:39 +02:00
staging missing field in stg 2024-07-08 16:29:35 +02:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00