data-dwh-dbt-project/models
Oriol Roqué Paniagua 35b6472b48 Merged PR 3183: Bugfixes on top losers
# Description

- Bugfix on nullif then 0 - it was applied to the numerator of Revenue computation, which made MoM growth be considered as null and propagated as 0 in the scores, which is not true.
- Bugfix on cast as numeric - this was introduced because PBI didn't read well some decimal figures when loading the data. However this impacted somehow in the score by some weird magic I don't understand. I just replace the casts by rounds, that are applied after the computation of the scores, and PBI seems happy with it.

# 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.
- [NA] I have checked for DRY opportunities with other models and docs.
- [NA] 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: #22635
2024-10-15 15:51:04 +00:00
..
intermediate Merged PR 3183: Bugfixes on top losers 2024-10-15 15:51:04 +00:00
reporting Merged PR 3171: Improvements on monthly growth score by deal 2024-10-15 12:31:39 +00:00
staging partial schema. Not doing more because deals is a monster 2024-10-15 15:41:20 +02:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00