Hi @Dan Homola I tried that too that if I pass a measure value filter, I need to pass the measure as seriesBy in the useExecutionDataView.
I worked with @Matyáš Kandl to make a custom filter that only show possible values in the dataset. Filters in are in a context, that cascades to each attribute filter.
// Query for possible values
const { result } = useExecutionDataView(
{
execution: { seriesBy, slicesBy, filters: currentFilter },
},
[currentFilter],
);
// Make stateElements for AttributeFilterButton
const staticElements = useMemo(
() =>
result
?.meta()
.allHeaders()[0][0]
// @ts-ignore
.map((m) => ({ title: m?.attributeHeaderItem?.name, uri: m?.attributeHeaderItem?.uri })) ?? [],
[result],
);