From c3e9d37f5dee9b346a8a16a621b28de640db6de6 Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:51:50 +0100 Subject: [PATCH] update agg_time_dimension example updating `agg_time_dimension` key examples to match valid values. raised in [internal slack](https://dbt-labs.slack.com/archives/C050Z6UP4RK/p1729560227396339) --- website/docs/docs/build/measures.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/docs/build/measures.md b/website/docs/docs/build/measures.md index 1901c7d05b7..977b630fada 100644 --- a/website/docs/docs/build/measures.md +++ b/website/docs/docs/build/measures.md @@ -102,7 +102,7 @@ semantic_models: description: A record of every transaction that takes place. Carts are considered multiple transactions for each SKU. model: ref('schema.transactions') defaults: - agg_time_dimension: metric_time + agg_time_dimension: transaction_date # --- entities --- entities: @@ -167,7 +167,7 @@ semantic_models: # --- dimensions --- dimensions: - - name: metric_time + - name: transaction_date type: time expr: date_trunc('day', ts) # expr refers to underlying column ts type_params: @@ -204,7 +204,7 @@ semantic_models: description: A subscription table with one row per date for each active user and their subscription plans. model: ref('your_schema.subscription_table') defaults: - agg_time_dimension: metric_time + agg_time_dimension: subscription_date entities: - name: user_id @@ -212,7 +212,7 @@ semantic_models: primary_entity: subscription_table dimensions: - - name: metric_time + - name: subscription_date type: time expr: date_transaction type_params: