data-dwh-dbt-project/models/intermediate/cross
Oriol Roqué Paniagua d2b0afdca6 Merged PR 2221: Computes (paid) guest revenue metric - fixed
IMPORTANT: this PR was merged and reverted. The division by 0 error has been fixed in the last commit

Adds the following metrics:
- Guest Revenue

by both visions (global and by deal id)
It creates 2 new models:
- int_mtd_guest_revenue_metrics
- int_monthly_guest_revenue_history_by_deal

the approaches are similar in the sense that we retrieve the information from the int_core__verification_payments and a filter by a PAID status. I checked and the aggregated volumes of the figures correspond to the decimal as what is reported to the guest_payments dashboard (aggregating the information from the currency tab)

Same as last PR, this one does not exposes the data since a refactor of how the code is structured will follow shortly.

Related work items: #18107
2024-07-08 11:02:02 +00:00
..
int_daily_currency_exchange_rates.sql go back to var, made a mistake in the last commit 2024-06-17 11:32:20 +02:00
int_dates.sql start cross folder in int to stop piling models at int root 2024-06-14 16:26:18 +02:00
int_dates_by_deal.sql Merged PR 2164: Adding booking metrics by deal id for business kpis 2024-07-01 16:00:14 +00:00
int_dates_mtd.sql Merged PR 2158: Allow last day of the month to appear on 1st of month 2024-07-01 07:53:38 +00:00
int_monthly_guest_revenue_history_by_deal.sql Merged PR 2221: Computes (paid) guest revenue metric - fixed 2024-07-08 11:02:02 +00:00
int_mtd_guest_revenue_metrics.sql Merged PR 2221: Computes (paid) guest revenue metric - fixed 2024-07-08 11:02:02 +00:00
int_simple_exchange_rates.sql simple model 2024-06-14 16:44:40 +02:00
schema.yml Merged PR 2221: Computes (paid) guest revenue metric - fixed 2024-07-08 11:02:02 +00:00