[Bug] Time offset doesn't work for nested derived metric #882
Labels
bug
Something isn't working
High priority
Created by Linear-GitHub Sync
linear
Metricflow
Created by Linear-GitHub Sync
Is this a new bug in metricflow?
Current Behavior
Currently, if you apply an
offset_window
oroffset_to_grain
to the outer metric of a nested derived metric, the offset will not be applied.Example:
Querying
bookings_offset_twice
withmetric_time__day
produces this SQL:Above you can see that only one offset is happening, when two would be expected.
Expected Behavior
The SQL should have an offset for the outer metric (
bookings_offset_twice
):Steps To Reproduce
Add a nested derived metric where the outer metric has an offset, then query it with
metric_time
.Relevant log output
No response
Environment
Which database are you using?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: