Merged PR 4118: New Dash services Invoiced Revenue
# Description
Adds new metrics on Revenue for New Dash services:
invoiced_revenue.xero_basic_protection_net_fees_in_gbp,
invoiced_revenue.xero_waiver_pro_net_fees_in_gbp,
invoiced_revenue.xero_id_verification_net_fees_in_gbp,
invoiced_revenue.xero_protection_plus_net_fees_in_gbp,
invoiced_revenue.xero_screening_plus_net_fees_in_gbp,
invoiced_revenue.xero_sex_offenders_check_net_fees_in_gbp,
invoiced_revenue.xero_protection_pro_net_fees_in_gbp
Note that it does not add Basic Screening. This is because so far this is a free service, even though the kpis models already consider such a possibility.
First data appears for December so this will be available starting 1st February
# 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.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] I've picked the right materialization for the affected models.
# Other
- [ ] Check if a full-refresh is required after this PR is merged.
New Dash services Invoiced Revenue
Related work items: #26680
This commit is contained in:
parent
d12a7233c9
commit
1865bafd19
4 changed files with 131 additions and 3 deletions
|
|
@ -90,6 +90,41 @@ select
|
|||
then xero_verification_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_verification_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_basic_protection_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_basic_protection_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_waiver_pro_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_waiver_pro_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_id_verification_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_id_verification_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_protection_plus_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_protection_plus_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_screening_plus_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_screening_plus_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_sex_offenders_check_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_sex_offenders_check_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_protection_pro_net_fees_in_gbp
|
||||
else null
|
||||
end as xero_protection_pro_net_fees_in_gbp,
|
||||
case
|
||||
when {{ is_date_before_previous_month("date") }}
|
||||
then xero_guesty_net_fees_in_gbp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue