diff --git a/models/marts/_models.yml b/models/marts/_models.yml index 9c86054..8d55ea0 100644 --- a/models/marts/_models.yml +++ b/models/marts/_models.yml @@ -4,6 +4,7 @@ models: standard_granularity_column: date_day # column for the standard grain of your table custom_granularities: - name: fiscal_quarter + column_name: almost_fiscal_quarter columns: - name: date_day granularity: day # set granularity at column-level for standard_granularity_column diff --git a/models/marts/time_spine.sql b/models/marts/time_spine.sql index 5381fe5..ee62644 100644 --- a/models/marts/time_spine.sql +++ b/models/marts/time_spine.sql @@ -13,7 +13,7 @@ cast_to_date as ( select cast(date_day as date) as date_day, - date_trunc('quarter', date_day) as fiscal_quarter + date_trunc('quarter', date_day) as almost_fiscal_quarter from days