data-dwh-dbt-project/models/reporting
Oriol Roqué Paniagua a67e3f46ba Merged PR 4948: Reporting model for mtd aggregated metrics by deal
# Description

Creates a new model for reporting. It includes any relevant metric at Deal level in a similar format as we do for `mtd_aggregated_metrics`. Additionally, there's few Deal attributes - from Hubspot, segmentations, lifecycles, etc.

In order to dynamically choose which metrics are relevant on a Deal level, I modified the configuration in `int_mtd_aggregated_metrics` so the extraction is under control.

# 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. **Worth discussing the possibilities to include indexes in the future**

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #28998
2025-04-08 10:04:11 +00:00
..
athena change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
check_in_hero adding id_deal to api models 2025-03-19 09:23:23 +01:00
core Fixed schema 2025-04-03 16:27:39 +02:00
edeposit Adding id_deal 2025-03-18 12:06:25 +01:00
general Merged PR 4948: Reporting model for mtd aggregated metrics by deal 2025-04-08 10:04:11 +00:00
kpis Update reporting model 2025-04-02 12:05:01 +02:00
resolutions Calculator changes 2025-02-28 12:19:24 +01:00
screen_and_protect adding id_deal to api models 2025-03-19 09:23:23 +01:00
xero Merged PR 4734: Bugfix - Ensures accounts cannot be duplicated in Xero sales monthly trends 2025-03-19 08:19:20 +00:00
exposures.yml Updated exposures 2025-03-10 10:57:21 +01:00