Merged PR 4882: Fix Business Targets

# Description

Fixes Blank stuff

# 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.

Fix Business Targets

Related work items: #28958
This commit is contained in:
Oriol Roqué Paniagua 2025-04-02 07:32:11 +00:00
parent 7a09fd344d
commit 0b75afbe39

View file

@ -238,11 +238,11 @@ with
'{{ metric.number_format }}' as number_format,
'{{ metric.display_exclusion }}' as display_exclusion,
'{{ metric.increment_sign_format }}' as increment_sign_format,
{{ metric.current_month_MTD }} as current_month_mtd,
{{ metric.previous_month_EOM }} as previous_month_eom,
{{ metric.previous_year_MTD }} as previous_year_mtd,
{{ metric.current_YTD }} as current_year_ytd,
{{ metric.previous_YTD }} as previous_year_ytd,
coalesce({{ metric.current_month_MTD }}, 0) as current_month_mtd,
coalesce({{ metric.previous_month_EOM }}, 0) as previous_month_eom,
coalesce({{ metric.previous_year_MTD }}, 0) as previous_year_mtd,
coalesce({{ metric.current_YTD }}, 0) as current_year_ytd,
coalesce({{ metric.previous_YTD }}, 0) as previous_year_ytd,
{{ metric.current_month_MTD }}
- {{ metric.previous_month_EOM }}
as diff_current_month_mtd_vs_previous_month_eom,