Skip to content

Commit

Permalink
Merge branch 'current' into mwong-add-versionblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Oct 23, 2024
2 parents ed82892 + 3cf9771 commit db5e353
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/docs/build/measures.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -204,15 +204,15 @@ 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
type: foreign
primary_entity: subscription_table
dimensions:
- name: metric_time
- name: subscription_date
type: time
expr: date_transaction
type_params:
Expand Down

0 comments on commit db5e353

Please sign in to comment.