From f7bacc2310999c132906bf50c49180ff574fbab8 Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Fri, 24 Jan 2025 08:30:05 +0100 Subject: [PATCH] changed names --- .../cross/int_mtd_aggregated_metrics.sql | 16 ++++++++-------- .../cross/int_mtd_vs_previous_year_metrics.sql | 13 +++++++++---- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/models/intermediate/cross/int_mtd_aggregated_metrics.sql b/models/intermediate/cross/int_mtd_aggregated_metrics.sql index 6adfa44..3fbc1d4 100644 --- a/models/intermediate/cross/int_mtd_aggregated_metrics.sql +++ b/models/intermediate/cross/int_mtd_aggregated_metrics.sql @@ -208,10 +208,10 @@ }, { "order_by": 102, - "metric": "Host Resolution Payment Rate", - "value": "xero_host_resolution_payment_ratio", - "previous_year_value": "previous_year_xero_host_resolution_payment_ratio", - "relative_increment": "relative_increment_xero_host_resolution_payment_ratio", + "metric": "Host Resolutions Payment Rate", + "value": "host_resolution_payment_per_created_booking_ratio", + "previous_year_value": "previous_year_host_resolution_payment_per_created_booking_ratio", + "relative_increment": "relative_increment_host_resolution_payment_per_created_booking_ratio", "number_format": "percentage", "increment_sign_format": "negative", }, @@ -559,10 +559,10 @@ }, { "order_by": 271, - "metric": "Host Resolutions Amount Paid per Booking", - "value": "xero_host_resolution_payment_per_booking_in_gbp", - "previous_year_value": "previous_year_xero_host_resolution_payment_per_booking_in_gbp", - "relative_increment": "relative_increment_xero_host_resolution_payment_per_booking_in_gbp", + "metric": "Host Resolutions Amount Paid per Booking Created", + "value": "host_resolution_amount_paid_per_created_booking", + "previous_year_value": "previous_year_host_resolution_amount_paid_per_created_booking", + "relative_increment": "relative_increment_host_resolution_amount_paid_per_created_booking", "number_format": "currency_gbp", "increment_sign_format": "negative", }, diff --git a/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql b/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql index 14bb950..bc45c22 100644 --- a/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql +++ b/models/intermediate/cross/int_mtd_vs_previous_year_metrics.sql @@ -288,9 +288,10 @@ with host_resolutions.xero_host_resolution_payment_count, cast(host_resolutions.xero_host_resolution_amount_paid_in_gbp as decimal) / created_bookings.created_bookings - as xero_host_resolution_payment_per_booking_in_gbp, + as host_resolution_amount_paid_per_created_booking, cast(host_resolutions.xero_host_resolution_payment_count as decimal) - / created_bookings.created_bookings as xero_host_resolution_payment_ratio, + / created_bookings.created_bookings + as host_resolution_payment_per_created_booking_ratio, -- GUEST REVENUE AND PAYMENTS -- guest_payments.deposit_fees_in_gbp, @@ -558,10 +559,14 @@ select {{ calculate_safe_relative_increment("xero_host_resolution_payment_count") }}, {{ calculate_safe_relative_increment( - "xero_host_resolution_payment_per_booking_in_gbp" + "host_resolution_amount_paid_per_created_booking" + ) + }}, + {{ + calculate_safe_relative_increment( + "host_resolution_payment_per_created_booking_ratio" ) }}, - {{ calculate_safe_relative_increment("xero_host_resolution_payment_ratio") }}, -- GUEST REVENUE -- {{ calculate_safe_relative_increment("deposit_fees_in_gbp") }},