data-dwh-dbt-project/models/intermediate/cross
Oriol Roqué Paniagua ee13eda5f3 Merged PR 2354: Main KPIs batch 2 exposure
This PR exposes the following metrics to the Main KPIs business overview report, for both Global + By Deal view:
- Total Revenue
- Total Revenue per Booking Created
- Total Revenue per Guest Journey Created
- Total Revenue per Deals Booked in Month (does not apply on the by deal view)
- Total Revenue per Listings Booked in Month
- Invoiced Operator Revenue
- Host Resolution Payment Count
- Host Resolution Amount Paid

Keep in mind Global view will be displaying these metrics once this is merged. I also changed a bit the order of the metric display.
Note that Billable Bookings are not included.

I recommend to review by 1) checking the first commit. This is almost the same as the previous abandoned PR that @<Joaquin Ossa> you already checked on Tuesday. I added a second commit, to be checked later, which basically fixes some stupid issues that if one of the source of revenue is null, then total revenue is null. This is specially critical for the view by deal, since most of them do not have revenue from APIs - thus all total revenue figures were null...

Related work items: #18108, #18109, #18110, #18719
2024-07-19 09:14:30 +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 2354: Main KPIs batch 2 exposure 2024-07-19 09:14:30 +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_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 2290: Refactor mtd joins to improve performance 2024-07-12 12:53:00 +00:00
int_mtd_vs_previous_year_metrics.sql Merged PR 2354: Main KPIs batch 2 exposure 2024-07-19 09:14:30 +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