diff --git a/superset/viz.py b/superset/viz.py index 769a1af564316..89b806596a504 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1317,6 +1317,7 @@ def to_series(self, df, classed=''): self.form_data.get('metric_2'), ] for i, m in enumerate(metrics): + m = utils.get_metric_name(m) ys = series[m] if df[m].dtype.kind not in 'biufc': continue