-
Notifications
You must be signed in to change notification settings - Fork 977
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
Update metricflow-commands.md #6181
Conversation
updating query examples to include missing primary entity prefix in group by command [refer to slack thread](https://dbt-labs.slack.com/archives/C04REFN03MX/p1727728803420059)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
thanks!
|
||
# In dbt Core | ||
mf query --metrics order_total --group-by metric_time,is_food_order --limit 10 --order-by -metric_time | ||
mf query --metrics order_total --group-byprimary_entity__is_food_order --limit 10 --order-by -metric_time |
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.
missing a space between --group-by
|
||
**Query** | ||
```bash | ||
dbt sl query --metrics order_total --group-by metric_time,is_food_order # In dbt Cloud | ||
dbt sl query --metrics order_total --group-by primary_entity__is_food_order # In dbt Cloud |
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.
Let's use order_id__is_food_order
instead of primary_entity__is_food_order
since that's what is used in teh where clause
tab
thank you @WilliamDee ! folded these in -- appreciate the quick review!! |
updating query examples to include missing primary entity prefix in group by command
refer to slack thread