From 0b75afbe39742646ec51f09ef898b8b1eada1836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Roqu=C3=A9=20Paniagua?= Date: Wed, 2 Apr 2025 07:32:11 +0000 Subject: [PATCH] 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 --- .../int_ytd_mtd_aggregated_main_metrics_overview.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql b/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql index fc55acc..a8188dd 100644 --- a/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql +++ b/models/intermediate/cross/int_ytd_mtd_aggregated_main_metrics_overview.sql @@ -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,