Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Calculate Geomean between two fields?

Crispy131
8 - Asteroid

Hello, I want to calculate the geometric mean between two fields [value 1] and [value 2] at each month/ year level

 

The data looks like this:

2022  Jan  1.32   1.67

2022  Jan  1.09   1.08

2023  Aug  1.11   1.23

2023  Aug  1.25   1.33

 

 

In Excel it would just be something like Geomean(C2:D2) however in Alteryx it seems you have to take the log then avg then exp of the values but how would you achieve this when you have two fields you want to compare  (i.e. [value 1] and [value 2] above) and not just the values in a single column?

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@Crispy131 
Maybe I am missing something, but is it like this?

1106-Crispy131.png

flying008
15 - Aurora

Hi, @Crispy131 

 

You need resolve the function 'GEOMEAN' of Excel by Alteryx,  ( I apologize, I mistakenly assumed you would be calculating the Geomean result value after grouping the data by year/month.)

 

录制_2024_11_06_13_28_26_4.gif

 

YearMonP1P2GEOMEAN
2022Jan1.321.671.269215
2022Jan1.091.081.269215
2023Aug1.111.231.227432
2023Aug1.251.331.227432
Labels
Top Solution Authors