Merged PR 4471: Visualisation changes

# Description

Adapts YTD/MTD for visualisation purposes

# 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.

Visualisation changes

Related work items: #27609
This commit is contained in:
Oriol Roqué Paniagua 2025-02-20 18:43:26 +00:00
parent 5942e4b81c
commit 8cf7393173
3 changed files with 27 additions and 0 deletions

View file

@ -129,6 +129,26 @@
"previous_YTD": "previous_ytd_waiver_revenue_per_billable_booking",
"requires_invoicing_data": false,
},
{
"id_metric": 14,
"name": "Damage Host-Waiver Payments",
"current_month_MTD": "-1*current_month_mtd_xero_waiver_paid_back_to_host_in_gbp",
"previous_month_EOM": "-1*previous_month_eom_xero_waiver_paid_back_to_host_in_gbp",
"previous_year_MTD": "-1*previous_year_mtd_xero_waiver_paid_back_to_host_in_gbp",
"current_YTD": "-1*current_ytd_xero_waiver_paid_back_to_host_in_gbp",
"previous_YTD": "-1*previous_ytd_xero_waiver_paid_back_to_host_in_gbp",
"requires_invoicing_data": true,
},
{
"id_metric": 15,
"name": "Host Resolutions Amount Paid",
"current_month_MTD": "-1*current_month_mtd_xero_host_resolution_amount_paid_in_gbp",
"previous_month_EOM": "-1*previous_month_eom_xero_host_resolution_amount_paid_in_gbp",
"previous_year_MTD": "-1*previous_year_mtd_xero_host_resolution_amount_paid_in_gbp",
"current_YTD": "-1*current_ytd_xero_host_resolution_amount_paid_in_gbp",
"previous_YTD": "-1*previous_ytd_xero_host_resolution_amount_paid_in_gbp",
"requires_invoicing_data": true,
},
] %}
with
int_ytd_mtd_main_metrics_overview as (