data-dwh-dbt-project/models/reporting
Oriol Roqué Paniagua 42d70f72d5 Merged PR 3667: Creates Chargeable metrics for New Dash KPIs
# Description

Creates the models for KPIs for New Dash - Chargeable metrics. In essence, computes 4 metrics:
- Chargeable Services
- Chargeable Amount (in GBP)
- Chargeable Bookings (unique over a time period and dimension, not additive)
- Chargeable Listings (unique over a time period and dimension, not additive)

This is done by creating:
- A Weekly Metric and Monthly Metric model. Here we keep the granularity of id_booking / id_accommodation to be able to compute the uniqueness.
- A Daily, Weekly and Monthly Aggregated models. Same as usual.
- Integrates everything to the existing model for Product New Dash Agg Metrics
- Exposes everything into reporting

NB: I removed on "by_host" in Created Services - I forgot to clear it out.

# 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: #20809
2024-11-26 14:19:41 +00:00
..
athena missing docs 2024-10-08 17:25:16 +02:00
core Merged PR 3506: Remove Address Validation 2024-11-14 11:59:36 +00:00
edeposit deprecate model and remove docs 2024-10-16 16:21:35 +02:00
general Merged PR 3500: Fix missing test 2024-11-11 16:37:58 +00:00
kpis Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
xero Remove .sql in the xero__bank_transaction_denom_mart 2024-09-18 13:52:55 +02:00
exposures.yml Removed guest metrics aggregated models 2024-11-21 09:14:37 +01:00