-
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 semantic-layer-6-advanced-metrics.md #4789
Conversation
Hello!👋 Thanks for contributing to the dbt product documentation and opening this pull request! ✨ |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hey @Thelegendlink thanks for opening this pr! I'd like to loop in @Jstein77 to double check this as it looks like the indentation is part of the |
Thanks for the prompt review @mirnawong1! Yeah that's causing an issue in parsing the config as |
Hmm there is another error after fixing the indent.
otherwise it's causing the error below: Error #1:
Message:
The given input does not match any of the available group-by-items for
Measure('food_revenue'). Common issues are:
* Incorrect names.
* No valid join paths exist from the measure to the group-by-item.
(fan-out join support is pending).
* There are multiple matching join paths.
(disambiguation support is pending).
Suggestions:
[
"Dimension('order_item__is_food_item')",
"Dimension('order_id__is_large_order')",
"Dimension('order_item__is_drink_item')",
"TimeDimension('order_id__ordered_at', 'day')",
"TimeDimension('order_item__ordered_at', 'day')",
"Entity('order_item__order_id')",
]
Query Input:
WhereFilter(
["{{ Dimension('order__is_food_order') }} = true",]
)
Filter Path:
[Resolve Query(['food_revenue'])]
-> [Resolve Metric('food_revenue')]
Object Builder Input:
Dimension('order__is_food_order')
Issue Location:
[Resolve Query(['food_revenue'])]
-> [Resolve Metric('food_revenue')]
-> [Resolve Measure('food_revenue')] |
Update measure: revenue to be food_revenue and remove filter
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 for updating this @Thelegendlink!
thanks again @Thelegendlink ! for the error you're encountering -- can you try the first suggestion: I'll get this merged for you though to make sure no one else runs into this issue! |
Thanks @mirnawong1, it works with the following code: filter: |
{{ Dimension('order_item__is_food_item') }} = 1 |
What are you changing in this pull request and why?
Fix indent and incorrect filter and measure in
Ratio metrics
which are causing errors in implementing the code:to
Checklist