diff --git a/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx b/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx index 760ff90c15d8..41063c290f3f 100644 --- a/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx +++ b/superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx @@ -24,7 +24,11 @@ import { PivotData, flatKey } from './utilities'; import { Styles } from './Styles'; const parseLabel = value => { - if (typeof value === 'number' || typeof value === 'string') { + if (typeof value === 'string') { + if (value === 'metric') return t('metric'); + return value; + } + if (typeof value === 'number') { return value; } return String(value);