data-dwh-dbt-project/models
Oriol Roqué Paniagua 9f7f92912f Merged PR 5311: Adds Confident Stay Revenue as a Main KPIs and Account Performance metric
# Description

Creates a new metric: Confident Stay Revenue.

This includes:
* Setting the computation in `int_mtd_vs_previous_year_metrics`
* Configuring the metric behavior in `int_mtd_aggregated_metrics`. It follows the same as CIH.
* Adding the metric in the completion test. I didn't add it in the outlier test in purpose as any new value would trigger the outlier since there's no history to compare against.

Few notes:
* I confirm it displays no value, as the product has not been launched.
* Note that the inclusion of Confident Stay in Guest Revenue was already handled in the previous PR.

Next steps to complete the ticket:
* Add in the Data Glossary of Main KPIs the definition of Confident Stay Revenue
* Add in the Data Glossary of Account Performance the definition of Confident Stay Revenue

# 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.
- [N/A] I have checked for DRY opportunities with other models and docs.
- [N/A] 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: #30278
2025-05-26 09:22:15 +00:00
..
intermediate Merged PR 5311: Adds Confident Stay Revenue as a Main KPIs and Account Performance metric 2025-05-26 09:22:15 +00:00
reporting Merged PR 5296: Drop Monthly Growth Score By Deal legacy models 2025-05-23 10:32:56 +00:00
staging Merged PR 5281: First version of stg_core__user_product_bundle_to_guest_product 2025-05-22 08:15:26 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00