data-dwh-dbt-project/models
Oriol Roqué Paniagua 0655ac8997 Merged PR 2105: Adding listing lifecycle metrics into business KPIs
This PR will compute the listing metrics in an aggregated manner to be displayed in the Main KPIs dashboard, specifically:
- New Listings
- First Time Booked Listings
- Churning Listings
- It also adapts the computation for the already existing metrics of Listings Booked in X months

At code level, it contains the following:
- Adds `int_core__mtd_accommodation_metrics`, which computes the aggregation of the lifecycle of listings at date level (unique), being date the corresponding date from `int_dates_mtd`
- Changes `int_core__mtd_aggregated_metrics` to take the accommodation metrics from the new model. Those 3 already existing (Listings booked in X month) now read from the new model as well.
- Changes `int_core__mtd_booking_metrics` to remove unused computation, making it lighter. Specifically, it removes 1) listing related metrics, since now we have a dedicated model and 2) number of guests booked, since it's not used at all.

The resulting values in local are consistent with what is already reported in the staging report.

Related work items: #17312
2024-06-25 08:14:23 +00:00
..
intermediate Merged PR 2105: Adding listing lifecycle metrics into business KPIs 2024-06-25 08:14:23 +00:00
reporting Fixed names of tables 2024-06-19 11:59:45 +02:00
staging docs for bank transactions table 2024-06-20 15:52:55 +02:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00