I have a table which contains a range of prices with corresponding year, and want to calculate the geometric mean by distinct year.
At present, I'd do this in SQL using the following query:
select distinct [Year], exp(avg(log([Price]))) as [Geomean]
group by [Year]
Is there a straight-forward way to replicate in Alteryx, perhaps using a custom expression with Summarize tool (if that's actually possible)?
Ideally, any solution should be flexible in terms of the grouped values (e.g. multiple values, spatial references etc.). My immediate thought is to use a SQL query in the input and control parameters using action tools. However, it'd be incredibly useful to crunch the numbers mid-workflow.