changed names

This commit is contained in:
Joaquin Ossa 2025-01-24 08:30:05 +01:00
parent 49a10fe249
commit f7bacc2310
2 changed files with 17 additions and 12 deletions

View file

@ -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",
},

View file

@ -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") }},