data-dwh-dbt-project/tests
Oriol Roqué Paniagua 5f92cf8948 Merged PR 4898: Small adaptations to KPIs Outlier detector test
# Description

Changes:
* If metric is null don't compute test.
* Use 1 year data to compare against.
* For debugging purposes, compute also the amount of days used in the comparison.

The metric is not null is a necessary feature to avoid raising errors while there's no Host Resolutions in month. Keep in mind the test will keep failing and this is EXPECTED because of a massive increase in New Listings:
![image.png](https://guardhog.visualstudio.com/4148d95f-4b6d-4205-bcff-e9c8e0d2ca65/_apis/git/repositories/54ac356f-aad7-46d2-b62c-e8c5b3bb8ebf/pullRequests/4898/attachments/image.png)

# Checklist

- [X] The edited models and dependants run properly with production data.
- [ ] The edited models are sufficiently documented.
- [ ] The edited models contain PK tests, and I've ran and passed them.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

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

If metric is null don't compute test. 1y data to compare against.
2025-04-03 07:04:35 +00:00
..
.gitkeep start project 2024-01-18 11:24:35 +01:00
kpis_additive_metrics_per_dimension_are_consistent.sql Merged PR 4763: Align metrics within KPIs report 2025-03-20 17:00:36 +00:00
kpis_global_metrics_outlier_detection.sql Merged PR 4898: Small adaptations to KPIs Outlier detector test 2025-04-03 07:04:35 +00:00