Weekly dimension
This commit is contained in:
parent
c21b05f9cf
commit
c29a47240f
2 changed files with 46 additions and 1 deletions
|
|
@ -26,6 +26,12 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
- name: week
|
||||
data_type: int
|
||||
description: Week number of the given date.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: day
|
||||
data_type: int
|
||||
description: Day monthly number of the given date.
|
||||
|
|
@ -70,6 +76,33 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
- name: first_day_week
|
||||
data_type: date
|
||||
description: |
|
||||
First day of the week corresponding to the date field.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: last_day_week
|
||||
data_type: date
|
||||
description: |
|
||||
Last day of the week corresponding to the date field.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: is_end_of_week
|
||||
data_type: boolean
|
||||
description: True if it's end of week, false otherwise.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: is_current_week
|
||||
data_type: boolean
|
||||
description: |
|
||||
True if the date is within the current week, false otherwise.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: int_kpis__lifecycle_daily_accommodation
|
||||
description: |
|
||||
This model computes the daily lifecycle segment for each accommodation, also known as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue