diff --git a/piperider_cli/dbtutil.py b/piperider_cli/dbtutil.py index 7cdd9b7bc..caa04c4cb 100644 --- a/piperider_cli/dbtutil.py +++ b/piperider_cli/dbtutil.py @@ -473,7 +473,7 @@ def _create_metric(name, filter=None, alias=None, derived_metric=None): return None if filter is not None: - f = get_metric_filter(metric.get('name'), filter) + f = get_metric_filter(derived_metric if derived_metric else metric.get('name'), filter) if f is not None: metric_filter.append(f) else: