I want to use this expression-
ifelse(
{Growing stage} = 1,
sum (min({Current growing plants}, [farm,{batch id}])),
0
)
And I get this error-
Mismatched aggregation. Custom aggregations can’t contain both aggregated and nonaggregated fields, in any combination.
How can I solve it?
Thanks in advance.