data-dwh-dbt-project/models/intermediate
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
..
athena docs for athena int 2024-10-08 14:54:11 +02:00
core Add new API role CancellationApi in user_role accepted values 2024-10-09 10:17:34 +02:00
cross Merged PR 3183: Bugfixes on top losers 2024-10-15 15:51:04 +00:00
edeposit move docs for int_edeposit__guesty_verifications 2024-10-08 14:45:50 +02:00
xero fix schemas in intermediate 2024-09-12 15:38:50 +02:00