data-dwh-dbt-project/models/intermediate/cross
Oriol Roqué Paniagua 04eb09c318 Merged PR 2413: Adding submetrics of guest revenue by deal
Adding submetrics of guest revenue by deal:

- deposit_fees_in_gbp
- checkin_cover_fees_in_gbp
- waiver_payments_in_gbp

all of this adds up to

- total_guest_income_in_gbp

and the total_guest_revenue_in_gbp is now computed by subtracting waivers paid to hosts, coming from the invoiced model. This also affects the total revenue computation and the weighted metrics.

This PR it's completely equivalent to the [Adding submetrics of guest revenue](https://guardhog.visualstudio.com/Data/_git/data-dwh-dbt-project/pullrequest/2381?path=/models/intermediate/cross/int_mtd_guest_revenue_metrics.sql&_a=files), that was already merged for the global view. The only difference is that this one is for the deal-based part. It does not expose the metrics to the report.

A follow-up PR is expected to apply the correct naming conventions for guest revenue models.

I recommend checking the first commit, the one that applies the changes, and should be easily understandable with the link to the previous PR. There's a couple of additional commits that only affect formatting.

Related work items: #18787, #18914
2024-07-26 10:42:48 +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_aggregated_metrics_history_by_deal.sql Merged PR 2413: Adding submetrics of guest revenue by deal 2024-07-26 10:42:48 +00:00
int_monthly_guest_revenue_history_by_deal.sql Merged PR 2413: Adding submetrics of guest revenue by deal 2024-07-26 10:42:48 +00:00
int_mtd_aggregated_metrics.sql Merged PR 2354: Main KPIs batch 2 exposure 2024-07-19 09:14:30 +00:00
int_mtd_guest_revenue_metrics.sql Merged PR 2381: Adding submetrics of guest revenue 2024-07-23 13:50:03 +00:00
int_mtd_vs_previous_year_metrics.sql Merged PR 2381: Adding submetrics of guest revenue 2024-07-23 13:50:03 +00:00
int_simple_exchange_rates.sql simple model 2024-06-14 16:44:40 +02:00
schema.yml Merged PR 2317: Exposing first_day_month for business kpis 2024-07-16 09:14:38 +00:00