Merged PR 4425: Reworks Billable Bookings metrics
# Description Changes: * On Est. Billable Bookings, keeps previous logic for Old Dash while assuming the first billable service for New Dash * Adds a Billable Check Out Bookings in Check Out bookings, as defined in the requirements. # 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. Related work items: #27619
This commit is contained in:
parent
a3793121af
commit
9540f18562
11 changed files with 110 additions and 24 deletions
|
|
@ -2960,6 +2960,13 @@ models:
|
|||
Count of daily bookings checked-out in a given date and per specified dimension
|
||||
that have not been cancelled.
|
||||
|
||||
- name: billable_check_out_bookings
|
||||
data_type: bigint
|
||||
description: |
|
||||
Count of daily bookings checked-out in a given date and per specified dimension
|
||||
that are billable. Note that the consideration for billable booking is different
|
||||
depending on the business scope of the booking.
|
||||
|
||||
- name: int_kpis__metric_monthly_check_out_bookings
|
||||
description: |
|
||||
This model computes the Monthly Check-out Bookings at the
|
||||
|
|
@ -3057,6 +3064,14 @@ models:
|
|||
Count of accumulated bookings checked-out in a given month
|
||||
and per specified dimension that have not been cancelled.
|
||||
|
||||
- name: billable_check_out_bookings
|
||||
data_type: bigint
|
||||
description: |
|
||||
Count of accumulated bookings checked-out in a given month
|
||||
and per specified dimension that are billable.
|
||||
Note that the consideration for billable booking is different
|
||||
depending on the business scope of the booking.
|
||||
|
||||
- name: int_kpis__metric_mtd_check_out_bookings
|
||||
description: |
|
||||
This model computes the Month-To-Date Check-out Bookings at the
|
||||
|
|
@ -3154,6 +3169,14 @@ models:
|
|||
Count of accumulated bookings checked-out in a given month up to the
|
||||
given date and per specified dimension that have not been cancelled.
|
||||
|
||||
- name: billable_check_out_bookings
|
||||
data_type: bigint
|
||||
description: |
|
||||
Count of accumulated bookings checked-out in a given month up to the
|
||||
given date and per specified dimension that are billable.
|
||||
Note that the consideration for billable booking is different
|
||||
depending on the business scope of the booking.
|
||||
|
||||
- name: int_kpis__agg_monthly_check_out_bookings
|
||||
description: |
|
||||
This model computes the dimension aggregation for
|
||||
|
|
@ -3193,6 +3216,7 @@ models:
|
|||
- check_out_bookings
|
||||
- cancelled_check_out_bookings
|
||||
- not_cancelled_check_out_bookings
|
||||
- billable_check_out_bookings
|
||||
- accepted_values:
|
||||
values:
|
||||
- global
|
||||
|
|
@ -3221,6 +3245,11 @@ models:
|
|||
description: |
|
||||
The monthly not cancelled checked-out bookings for a given date, dimension and value.
|
||||
|
||||
- name: billable_check_out_bookings
|
||||
data_type: bigint
|
||||
description: |
|
||||
The monthly billable checked-out bookings for a given date, dimension and value.
|
||||
|
||||
- name: cancelled_check_out_bookings_rate
|
||||
data_type: decimal
|
||||
description: |
|
||||
|
|
@ -3265,6 +3294,7 @@ models:
|
|||
- check_out_bookings
|
||||
- cancelled_check_out_bookings
|
||||
- not_cancelled_check_out_bookings
|
||||
- billable_check_out_bookings
|
||||
- accepted_values:
|
||||
values:
|
||||
- global
|
||||
|
|
@ -3293,6 +3323,11 @@ models:
|
|||
description: |
|
||||
The month-to-date not cancelled checked-out bookings for a given date, dimension and value.
|
||||
|
||||
- name: billable_check_out_bookings
|
||||
data_type: bigint
|
||||
description: |
|
||||
The month-to-date billable checked-out bookings for a given date, dimension and value.
|
||||
|
||||
- name: cancelled_check_out_bookings_rate
|
||||
data_type: decimal
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue