dbt-labs/metricflow

[SL-1810] [Bug] Querying a time offset metric with multiple `metric_time` dimensions returns incorrect results

Closed this issue · 0 comments

Is this a new bug in metricflow?

  • I believe this is a new bug in metricflow
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

If you query a time offset metric with one instance of metric_time (or agg_time_dimension), the results are offset as expected. But if you query with multiple instances of metric_time, only one of the metric_time instances will be offset appropriately.

Expected Behavior

Every instance of metric_time should be offset in the query results.

Steps To Reproduce

Build a derived metric that uses offset_window or offset_to_grain. Query that metric with metric_time__day and metric_time__week.

Relevant log output

No response

Environment

- OS:
- Python:
- dbt:
- metricflow:

Which database are you using?

No response

Additional Context

No response

SL-1810