From 78e2474a876795c4094909a317f6b4c80261a4fc Mon Sep 17 00:00:00 2001 From: Joaquin Date: Wed, 2 Apr 2025 08:22:21 +0200 Subject: [PATCH] Update reporting model --- models/intermediate/kpis/schema.yml | 9 +++------ .../kpis/kpis__product_new_dash_agg_metrics.sql | 2 +- models/reporting/kpis/schema.yml | 9 +++------ 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/models/intermediate/kpis/schema.yml b/models/intermediate/kpis/schema.yml index f96fd9b..bda9380 100644 --- a/models/intermediate/kpis/schema.yml +++ b/models/intermediate/kpis/schema.yml @@ -6727,14 +6727,11 @@ models: The created services for a given time granularity, date or dates range, dimension and value. - - name: booking_with_created_services_count + - name: created_bookings data_type: bigint description: | - The bookings with created services for a given time granularity, date or - dates range, dimension and value. - This is an approximation to booking count since different services can - apply to the same booking and these do not need to be created in the same - time period. Therefore, it's not an additive metric. + The amount of created bookings for a given time granularity, date or dates range, + dimension and value. - name: total_chargeable_services data_type: integer diff --git a/models/reporting/kpis/kpis__product_new_dash_agg_metrics.sql b/models/reporting/kpis/kpis__product_new_dash_agg_metrics.sql index c09e00d..bbdb31f 100644 --- a/models/reporting/kpis/kpis__product_new_dash_agg_metrics.sql +++ b/models/reporting/kpis/kpis__product_new_dash_agg_metrics.sql @@ -11,7 +11,7 @@ select deal_with_offered_service_count as deal_with_offered_service_count, accommodation_with_offered_service_count as accommodation_with_offered_service_count, - created_bookings_count as created_bookings_count, + created_bookings as created_bookings, total_chargeable_services as total_chargeable_services, total_chargeable_amount_in_gbp as total_chargeable_amount_in_gbp, unique_chargeable_bookings as unique_chargeable_bookings, diff --git a/models/reporting/kpis/schema.yml b/models/reporting/kpis/schema.yml index 0bbe918..79da89d 100644 --- a/models/reporting/kpis/schema.yml +++ b/models/reporting/kpis/schema.yml @@ -327,14 +327,11 @@ models: description: | The count of accommodations with services offered by a given date, dimension and value. - - name: booking_with_created_services_count + - name: created_bookings data_type: bigint description: | - The bookings with created services for a given time granularity, date or - dates range, dimension and value. - This is an approximation to booking count since different services can - apply to the same booking and these do not need to be created in the same - time period. Therefore, it's not an additive metric. + The amount of created bookings for a given time granularity, date or dates range, + dimension and value. - name: total_chargeable_services data_type: integer