Skip to content
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

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Metric date #6428

merged 4 commits into from
Nov 7, 2024

Conversation

matthewshaver
Copy link
Contributor

@matthewshaver matthewshaver commented Nov 6, 2024

What are you changing in this pull request and why?

Enhancing examples https://dbt-labs.slack.com/archives/C02NCQ9483C/p1730927629130439

Checklist

  • I have reviewed the Content style guide so my content adheres to these guidelines.
  • The topic I'm writing about is for specific dbt version(s) and I have versioned it according to the version a whole page and/or version a block of content guidelines.
  • I have added checklist item(s) to this list for anything anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."
  • The content in this PR requires a dbt release note, so I added one to the release notes page.

🚀 Deployment available! Here are the direct links to the updated files:

@matthewshaver matthewshaver requested a review from a team as a code owner November 6, 2024 21:56
Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Nov 7, 2024 0:43am

@github-actions github-actions bot added content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address labels Nov 6, 2024
@@ -200,16 +200,16 @@ Parameters under the `non_additive_dimension` will specify dimensions that the m

```yaml
semantic_models:
- name: subscription_id
- name: subscription
Copy link
Contributor

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)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely

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')
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

Copy link
Contributor

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!

@matthewshaver matthewshaver enabled auto-merge (squash) November 7, 2024 00:40
@matthewshaver matthewshaver merged commit 74dfc54 into current Nov 7, 2024
13 checks passed
@matthewshaver matthewshaver deleted the metric-date branch November 7, 2024 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants