Skip to content

Commit

Permalink
jordan's suggs
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Aug 23, 2023
1 parent 09a02f4 commit 238544a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/docs/build/metricflow-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ mf query --metrics revenue --group-by metric_time__month
<details>
<summary>How can I add a dimension filter to a where filter?</summary>
To add a dimension filter to a where filter, you have to indicate that the filter item is part of your model and use a template wrapper: <code>{{Dimension('model_name1__model_name2')}}</code>.
To add a dimension filter to a where filter, you have to indicate that the filter item is part of your model and use a template wrapper: <code>{{Dimension('primary_entity__dimension_name')}}</code>.
Here's an example query: <code>mf query --metrics order_total --group-by metric_time --where "{{Dimension('order_id__is_food_order')}} = True"</code>.<br /><br /> Before using the template wrapper, however, you will need to set up your terminal to escape curly braces for the filter template to work.

Expand Down

0 comments on commit 238544a

Please sign in to comment.