Merged PR 4352: Bulk update dash_source to business_scope

# Description

Changes:
* Switches dash_source to business_scope in all kpis models, schema and macro configuration.

# 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.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] 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: #27356
This commit is contained in:
Oriol Roqué Paniagua 2025-02-11 16:19:33 +00:00
parent 4f2a34427f
commit 78707ef649
23 changed files with 231 additions and 164 deletions

View file

@ -1,11 +1,11 @@
{{ config(materialized="table", unique_key=["date", "id_deal", "dash_source"]) }}
{{ config(materialized="table", unique_key=["date", "id_deal", "business_scope"]) }}
select
-- Unique Key --
icb.created_date_utc as date,
coalesce(icuh.id_deal, 'UNSET') as id_deal,
case
when icbs.id_booking is not null then 'New Dash' else 'Old Dash'
end as dash_source,
end as business_scope,
-- Dimensions --
coalesce(
icd.main_billing_country_iso_3_per_deal, 'UNSET'