# Description Modifies `int_core__mtd_guest_payments_metrics` to include the customer segmentation based on listings. `schema.yaml` is also affected including new fields, tests and apply the proper naming (from guest revenue to guest payments). I also modified a silly naming that was referring to deals to refer to listings/accommodations, my bad. Added the macro to retrieve the production dimension in `int_core__mtd_vs_previous_year_metrics` to avoid propagating this upwards and messing up with the data display. Overall, follows a similar strategy as we did for Booking, Guest Journey, Deal and Accommodation metrics. For reference, [here's the previous PR on Accommodations](https://guardhog.visualstudio.com/Data/_git/data-dwh-dbt-project/pullrequest/2575?_a=overview). # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [X] I have checked for DRY opportunities with other models and docs. - [X] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Related work items: #19325 |
||
|---|---|---|
| .. | ||
| int_daily_currency_exchange_rates.sql | ||
| int_dates.sql | ||
| int_dates_by_deal.sql | ||
| int_dates_mtd.sql | ||
| int_dates_mtd_by_dimension.sql | ||
| int_monthly_aggregated_metrics_history_by_deal.sql | ||
| int_mtd_aggregated_metrics.sql | ||
| int_mtd_vs_previous_year_metrics.sql | ||
| int_simple_exchange_rates.sql | ||
| schema.yml | ||