-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metric date #6428
Metric date #6428
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
website/docs/docs/build/measures.md
Outdated
@@ -200,16 +200,16 @@ Parameters under the `non_additive_dimension` will specify dimensions that the m | |||
|
|||
```yaml | |||
semantic_models: | |||
- name: subscription_id | |||
- name: subscription |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this subscriptions
(plural)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely
website/docs/docs/build/measures.md
Outdated
description: A subscription table with one row per date for each active user and their subscription plans. | ||
model: ref('your_schema.subscription_table') | ||
model: ref('your_schema.subscription') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave this how it was! The table name doesn't need to match the semantic model name.
defaults: | ||
agg_time_dimension: subscription_date | ||
|
||
entities: | ||
- name: user_id | ||
type: foreign | ||
primary_entity: subscription_table | ||
primary_entity: subscription |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and everything below looks good!
What are you changing in this pull request and why?
Enhancing examples https://dbt-labs.slack.com/archives/C02NCQ9483C/p1730927629130439
Checklist
🚀 Deployment available! Here are the direct links to the updated files: