Merged PR 3616: Compute weekly new dash created services
# Description Changes: * Fixes weekly dates for KPIs. Before, joins were not working (but nothing was really used). * Computes weekly new dash created services and exposes it to reporting # 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. - [ ] 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: #20809
This commit is contained in:
parent
2d6afbfd42
commit
2e7c85d11b
6 changed files with 254 additions and 3 deletions
|
|
@ -8,13 +8,13 @@ with
|
|||
select
|
||||
id.year_number as year,
|
||||
id.month_of_year as month,
|
||||
id.week_of_year as week,
|
||||
id.iso_week_of_year as week,
|
||||
id.day_of_month as day,
|
||||
id.date_day as date,
|
||||
id.month_start_date as first_day_month,
|
||||
id.month_end_date as last_day_month,
|
||||
id.week_start_date as first_day_week,
|
||||
id.week_end_date as last_day_week,
|
||||
id.iso_week_start_date as first_day_week,
|
||||
id.iso_week_end_date as last_day_week,
|
||||
now()::date as today
|
||||
from int_dates id
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue