diff --git a/web-common/src/features/dashboards/state-managers/selectors/measures.ts b/web-common/src/features/dashboards/state-managers/selectors/measures.ts index 5e5c0d4ae2c..b49a02c7155 100644 --- a/web-common/src/features/dashboards/state-managers/selectors/measures.ts +++ b/web-common/src/features/dashboards/state-managers/selectors/measures.ts @@ -67,13 +67,15 @@ export const isMeasureValidPercentOfTotal = ({ export const filteredSimpleMeasures = ({ validMetricsView, + validExplore, }: DashboardDataSources) => { return () => { return ( validMetricsView?.measures?.filter( (m) => !m.window && - m.type !== MetricsViewSpecMeasureType.MEASURE_TYPE_TIME_COMPARISON, + m.type !== MetricsViewSpecMeasureType.MEASURE_TYPE_TIME_COMPARISON && + validExplore?.measures?.includes(m.name ?? ""), ) ?? [] ); };