diff --git a/ui/src/views/Baseline.jsx b/ui/src/views/Baseline.jsx index 7b363d4..7913c78 100644 --- a/ui/src/views/Baseline.jsx +++ b/ui/src/views/Baseline.jsx @@ -98,7 +98,11 @@ export default function Baseline({ sources = [], sourceId, versions = [], versio useEffect(() => { if (!sourceId) return fetch(`/api/sources/${sourceId}/cols`).then(r => r.json()).then(cols => { - const fc = cols.filter(c => c.role === 'date' || c.role === 'filter') + // What a load is filtered by and what the pivot groups by are separate + // concerns: a dimension is exactly the sort of thing a segment is cut on + // (sseas, channel_new), and forcing it to role 'filter' to get it here + // would cost it its place on the pivot. Only measures are excluded. + const fc = cols.filter(c => ['date', 'filter', 'dimension'].includes(c.role)) setFilterCols(fc) setFilters(fc.length > 0 ? [emptyGroup(fc)] : []) })