[release-12.3.1] Azure: Fix dcount aggregation (#114907)

Azure: Fix `dcount` aggregation (#114666)

* Add parameter type field

* Use parameterType to filter columns for aggregation funcs

* Support selecting column for dcount aggregation

(cherry picked from commit b719aea078)

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2025-12-08 13:48:36 +00:00
committed by GitHub
co-authored by Andreas Christou
parent 5e63352be3
commit 96bdf085d3
@@ -30,7 +30,7 @@ const AggregateItem: React.FC<AggregateItemProps> = ({
templateVariableOptions,
}) => {
const isPercentile = aggregate.reduce?.name === 'percentile';
const isCountAggregate = aggregate.reduce?.name?.includes('count');
const isCountAggregate = aggregate.reduce?.name === 'count';
const [percentileValue, setPercentileValue] = useState(aggregate.parameters?.[0]?.value || '');
const [columnValue, setColumnValue] = useState(