data-dwh-dbt-project/models/intermediate
Oriol Roqué Paniagua 5382a9b32b Merged PR 4374: Ensures KYG lite users are excluded from New and Old Dash
# Description

Changes:
* **Main change:** exclusion of KYG lite users of the segmentation of Business Scope. These are "freemium" users, kind of demo users, that shouldn't have any real impact in terms of revenue. These are in New Dash, but do not have a deal. The problem is that we don't want to consider them as New Dash, but the current condition was making them appear as Old Dash. This PR fixes this by handling the logic for backend related models. Note that Xero remains unaffected - this is based on Deal, and these users do not have Deal.
* Small data quality fix I noticed while debugging KYG lite cases. It's better to use the "is upgraded service" from the staging original tables rather than the one with the prices. If a user does not have a currency (which can be the case for KYG lite users), then the coalesce would tag any service as not upgraded, which is not true.

# 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
2025-02-13 09:38:43 +00:00
..
athena Merged PR 4106: Avoids duplicates in athena verification with fees after price changes 2025-01-19 10:07:39 +00:00
check_in_hero back to created date 2025-01-21 10:18:46 +01:00
core Merged PR 4374: Ensures KYG lite users are excluded from New and Old Dash 2025-02-13 09:38:43 +00:00
cross Merged PR 4326: Remove cancelled Bookings. Adds index in mtd_aggregated_metrics 2025-02-10 13:14:31 +00:00
edeposit change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
hubspot change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
kpis Merged PR 4374: Ensures KYG lite users are excluded from New and Old Dash 2025-02-13 09:38:43 +00:00
screen_and_protect change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
xero Merged PR 4228: First version of sales - monthly trends 2025-01-31 08:33:15 +00:00