data-dwh-dbt-project/models/intermediate/kpis
Joaquin Ossa dd4dff1479 Merged PR 3666: Aggregated model for guest kpis metrics in intermediate
# Description

Aggregated model for guest kpis metrics.
This model aggregates the values for all basic metrics for guest kpis, it has a granularity per metrics of timeframe (YTD, MTD, WTD) and all other dimensions needed (has_payment, has_id_check & main_billing_country_iso_3_per_deal).
I decided not to include the calculated metrics because it adds much more complexity to the model specially when you start considering all possible combinations between dimensions and how this would affect the calculations, in this case conversion_rate, revenue_rate and average_csat_score. I think this could all be managed much simpler inside PBI and since the granularity of the model is not as deep as the daily model, this should help with the loading time for the report.

# 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.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] 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: #24604
2024-11-26 15:37:06 +00:00
..
_kpis_readme.md Merged PR 3329: First version of KPIs refactored - created bookings 2024-10-30 08:55:19 +00:00
int_kpis__agg_daily_deals.sql Merged PR 3451: Adds Deal Daily Lifecycle and metrics 2024-11-07 10:49:06 +00:00
int_kpis__agg_daily_listings.sql Merged PR 3461: Creates models for listing metrics 2024-11-07 16:56:43 +00:00
int_kpis__agg_daily_new_dash_chargeable_services.sql Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
int_kpis__agg_daily_new_dash_created_services.sql Merged PR 3654: New Dash KPIs - Chargeable Services (Revenue) 2024-11-26 10:14:37 +00:00
int_kpis__agg_dates_main_kpis.sql Merged PR 3482: Adapts date dimension skeleton for Main KPIs 2024-11-11 15:57:37 +00:00
int_kpis__agg_monthly_billable_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_cancelled_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_check_out_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_completed_guest_journeys.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_created_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_created_guest_journeys.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_guest_journeys_with_payment.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_monthly_guest_payments.sql renamed test entity 2024-11-07 12:56:49 +01:00
int_kpis__agg_monthly_host_resolutions.sql Merged PR 3419: Adds Host Resolutions metrics in new KPIs 2024-11-05 07:45:41 +00:00
int_kpis__agg_monthly_invoiced_revenue.sql Merged PR 3431: Adds Invoicing metrics 2024-11-05 16:57:23 +00:00
int_kpis__agg_monthly_new_dash_chargeable_services.sql Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
int_kpis__agg_monthly_new_dash_created_services.sql Merged PR 3599: New Dash KPIs skeleton with Created Services 2024-11-20 09:43:30 +00:00
int_kpis__agg_monthly_started_guest_journeys.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_billable_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_cancelled_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_check_out_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_completed_guest_journeys.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_created_bookings.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_created_guest_journeys.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_guest_journeys_with_payment.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_mtd_guest_payments.sql renamed test entity 2024-11-07 12:56:49 +01:00
int_kpis__agg_mtd_host_resolutions.sql Merged PR 3419: Adds Host Resolutions metrics in new KPIs 2024-11-05 07:45:41 +00:00
int_kpis__agg_mtd_invoiced_revenue.sql Merged PR 3431: Adds Invoicing metrics 2024-11-05 16:57:23 +00:00
int_kpis__agg_mtd_started_guest_journeys.sql aggregated to agg 2024-11-05 12:17:26 +01:00
int_kpis__agg_weekly_guest_payments.sql renamed test entity 2024-11-07 12:56:49 +01:00
int_kpis__agg_weekly_new_dash_chargeable_services.sql Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
int_kpis__agg_weekly_new_dash_created_services.sql Merged PR 3616: Compute weekly new dash created services 2024-11-21 11:30:36 +00:00
int_kpis__dimension_daily_accommodation.sql Merged PR 3329: First version of KPIs refactored - created bookings 2024-10-30 08:55:19 +00:00
int_kpis__dimension_date_product_guest.sql Added billing_country 2024-11-26 12:36:54 +01:00
int_kpis__dimension_dates.sql Merged PR 3616: Compute weekly new dash created services 2024-11-21 11:30:36 +00:00
int_kpis__lifecycle_daily_accommodation.sql Merged PR 3433: Change lifecycle daily to just handle last available day 2024-11-06 11:10:31 +00:00
int_kpis__lifecycle_daily_deal.sql Merged PR 3451: Adds Deal Daily Lifecycle and metrics 2024-11-07 10:49:06 +00:00
int_kpis__metric_daily_billable_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_daily_cancelled_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_daily_check_in_attributed_guest_journeys.sql Changed to updated_at_utc 2024-11-19 09:23:28 +01:00
int_kpis__metric_daily_check_out_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_daily_completed_guest_journeys.sql Merged PR 3379: Fixes null on dates 2024-10-30 13:33:11 +00:00
int_kpis__metric_daily_created_bookings.sql Merged PR 3329: First version of KPIs refactored - created bookings 2024-10-30 08:55:19 +00:00
int_kpis__metric_daily_created_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_daily_deals.sql Merged PR 3461: Creates models for listing metrics 2024-11-07 16:56:43 +00:00
int_kpis__metric_daily_guest_journeys_with_payment.sql Merged PR 3385: Adds Guest Journey with Payment metric 2024-10-30 16:43:50 +00:00
int_kpis__metric_daily_guest_payments.sql Commit saved model 2024-11-09 15:21:20 +01:00
int_kpis__metric_daily_host_resolutions.sql Merged PR 3419: Adds Host Resolutions metrics in new KPIs 2024-11-05 07:45:41 +00:00
int_kpis__metric_daily_invoiced_revenue.sql Merged PR 3431: Adds Invoicing metrics 2024-11-05 16:57:23 +00:00
int_kpis__metric_daily_listings.sql Merged PR 3461: Creates models for listing metrics 2024-11-07 16:56:43 +00:00
int_kpis__metric_daily_new_dash_chargeable_services.sql Merged PR 3654: New Dash KPIs - Chargeable Services (Revenue) 2024-11-26 10:14:37 +00:00
int_kpis__metric_daily_new_dash_created_services.sql Merged PR 3625: Excludes new dash users without id deal 2024-11-21 16:30:47 +00:00
int_kpis__metric_daily_started_guest_journeys.sql Merged PR 3379: Fixes null on dates 2024-10-30 13:33:11 +00:00
int_kpis__metric_monthly_billable_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_monthly_cancelled_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_monthly_check_out_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_monthly_completed_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_monthly_created_bookings.sql Merged PR 3329: First version of KPIs refactored - created bookings 2024-10-30 08:55:19 +00:00
int_kpis__metric_monthly_created_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_monthly_guest_journeys_with_payment.sql Merged PR 3385: Adds Guest Journey with Payment metric 2024-10-30 16:43:50 +00:00
int_kpis__metric_monthly_guest_payments.sql monthly and weekly metric models 2024-11-07 12:06:37 +01:00
int_kpis__metric_monthly_host_resolutions.sql Merged PR 3419: Adds Host Resolutions metrics in new KPIs 2024-11-05 07:45:41 +00:00
int_kpis__metric_monthly_invoiced_revenue.sql Merged PR 3431: Adds Invoicing metrics 2024-11-05 16:57:23 +00:00
int_kpis__metric_monthly_new_dash_chargeable_services.sql Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
int_kpis__metric_monthly_new_dash_created_services.sql Merged PR 3654: New Dash KPIs - Chargeable Services (Revenue) 2024-11-26 10:14:37 +00:00
int_kpis__metric_monthly_started_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_mtd_billable_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_mtd_cancelled_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_mtd_check_out_bookings.sql Merged PR 3391: Adds Check-Out, Cancelled and Billable Bookings 2024-10-31 14:31:19 +00:00
int_kpis__metric_mtd_completed_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_mtd_created_bookings.sql Merged PR 3329: First version of KPIs refactored - created bookings 2024-10-30 08:55:19 +00:00
int_kpis__metric_mtd_created_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_mtd_guest_journeys_with_payment.sql Merged PR 3385: Adds Guest Journey with Payment metric 2024-10-30 16:43:50 +00:00
int_kpis__metric_mtd_guest_payments.sql monthly and weekly metric models 2024-11-07 12:06:37 +01:00
int_kpis__metric_mtd_host_resolutions.sql Merged PR 3419: Adds Host Resolutions metrics in new KPIs 2024-11-05 07:45:41 +00:00
int_kpis__metric_mtd_invoiced_revenue.sql Merged PR 3431: Adds Invoicing metrics 2024-11-05 16:57:23 +00:00
int_kpis__metric_mtd_started_guest_journeys.sql Merged PR 3377: Adds GJ Created, Started and Completed in new KPIs flow 2024-10-30 11:45:45 +00:00
int_kpis__metric_weekly_guest_payments.sql monthly and weekly metric models 2024-11-07 12:06:37 +01:00
int_kpis__metric_weekly_new_dash_chargeable_services.sql Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
int_kpis__metric_weekly_new_dash_created_services.sql Merged PR 3654: New Dash KPIs - Chargeable Services (Revenue) 2024-11-26 10:14:37 +00:00
int_kpis__product_guest_agg_metrics.sql modified py_week_current_date calculation 2024-11-26 15:29:14 +01:00
int_kpis__product_guest_daily_metrics.sql fixed model copy paste 2024-11-26 12:36:54 +01:00
int_kpis__product_new_dash_agg_metrics.sql Merged PR 3667: Creates Chargeable metrics for New Dash KPIs 2024-11-26 14:19:41 +00:00
schema.yml Merged PR 3666: Aggregated model for guest kpis metrics in intermediate 2024-11-26 15:37:06 +00:00