Merged PR 3925: Bugfix

# Description

Fixes issues on reporting after name changes

# Checklist

- [ ] 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.

Bugfix
This commit is contained in:
Oriol Roqué Paniagua 2025-01-03 08:24:16 +00:00
parent a61da137fa
commit 564a4f307d

View file

@ -115,12 +115,12 @@ select
checkin_cover_fees_in_gbp as checkin_cover_fees_in_gbp,
case
when {{ is_date_before_previous_month("date") }}
then income_retained_in_gbp
then revenue_retained_in_gbp
else null
end as income_retained_in_gbp,
end as revenue_retained_in_gbp,
case
when {{ is_date_before_previous_month("date") }}
then income_retained_post_resolutions_in_gbp
then revenue_retained_post_resolutions_in_gbp
else null
end as income_retained_post_resolutions_in_gbp
end as revenue_retained_post_resolutions_in_gbp
from int_monthly_aggregated_metrics_history_by_deal