Merged PR 3127: (3/3) Revenue renaming - KPIs by deal
# Description Main changes: * Guest revenue is now guest payments. PBI uses Guest revenue, so alias is changed at reporting level, while it uses guest_payments_in_gbp field. * Removal of Waiver Amount Paid back to Host to Guest revenue and Total revenue. # Checklist - [X] The edited models and dependants run properly with production data. - [NA] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [NA] I have checked for DRY opportunities with other models and docs. - [NA] 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: #22688
This commit is contained in:
parent
745f00bad2
commit
52f01adc11
2 changed files with 4 additions and 42 deletions
|
|
@ -61,21 +61,10 @@ select
|
|||
then xero_apis_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_apis_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then total_guest_revenue_in_gbp
|
||||
else null
|
||||
end as total_guest_revenue_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then guest_revenue_per_completed_guest_journey
|
||||
else null
|
||||
end as guest_revenue_per_completed_guest_journey,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then guest_revenue_per_paid_guest_journey
|
||||
else null
|
||||
end as guest_revenue_per_paid_guest_journey,
|
||||
total_guest_payments_in_gbp as total_guest_revenue_in_gbp,
|
||||
guest_payments_per_completed_guest_journey
|
||||
as guest_revenue_per_completed_guest_journey,
|
||||
guest_payments_per_paid_guest_journey as guest_revenue_per_paid_guest_journey,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_host_resolution_amount_paid_in_gbp
|
||||
|
|
@ -121,10 +110,6 @@ select
|
|||
then waiver_net_fees_in_gbp
|
||||
else null
|
||||
end as waiver_net_fees_in_gbp,
|
||||
total_guest_payments_in_gbp as total_guest_payments_in_gbp,
|
||||
guest_payments_per_completed_guest_journey
|
||||
as guest_payments_per_completed_guest_journey,
|
||||
guest_payments_per_paid_guest_journey as guest_payments_per_paid_guest_journey,
|
||||
deposit_fees_in_gbp as deposit_fees_in_gbp,
|
||||
waiver_payments_in_gbp as waiver_payments_in_gbp,
|
||||
checkin_cover_fees_in_gbp as checkin_cover_fees_in_gbp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue