dbt-labs / metricflow

MetricFlow allows you to define, build, and maintain metrics in code.
https://docs.getdbt.com/docs/build/about-metricflow
Other
1.12k stars 92 forks source link

Allow passing granularity in where filter `TimeDimension` name #1316

Closed courtneyholcomb closed 1 month ago

courtneyholcomb commented 1 month ago

Allow users to use dunder syntax to pass granularity in where filter TimeDimension. Ex: {{ TimeDimension('metric_time__month') }} > 2020-01-01 This behavior is currently implemented everywhere else that similar Jinja parsing happens, making this one site inconsistent. Fix that to avoid user confusion.