From b719aea078b13cf0ff222eb138a0b81c921e2829 Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Fri, 5 Dec 2025 13:25:56 +0100 Subject: [PATCH] Azure: Fix `dcount` aggregation (#114666) * Add parameter type field * Use parameterType to filter columns for aggregation funcs * Support selecting column for dcount aggregation --- .../azuremonitor/components/LogsQueryBuilder/AggregateItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/azuremonitor/components/LogsQueryBuilder/AggregateItem.tsx b/public/app/plugins/datasource/azuremonitor/components/LogsQueryBuilder/AggregateItem.tsx index 2eacf01b8bd..294c85fdb87 100644 --- a/public/app/plugins/datasource/azuremonitor/components/LogsQueryBuilder/AggregateItem.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/LogsQueryBuilder/AggregateItem.tsx @@ -30,7 +30,7 @@ const AggregateItem: React.FC = ({ 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(