Free Trial

Alteryx Designer Desktop Discussions

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

Calculating weighted average when weight field depends on unit of measurement

lf7988
5 - Atom

Hello all - I am attempting to calculate a weighted average in my flow but the weight field would differ based on unit of measurement. Could anyone help me figure out how I could make this work simply?

 

See table for example of what I mean. "Value" column would be the value field. But which column was the weight field would depend on the unit of measurement (ounces or packs). 

 

Value Unit of Measurement Annual # of Packs Annual # of Ounces 
3.21Ounces 57327,698
6.37Packs 71245,896,321
6.17Packs 4,1922,541,682
7.75Packs 7,8265,498,230
1.63Ounces 3,3525,412,369
8.63Packs 125741,578
9.79Packs 5,488154,891
5.22Ounces 1412,639,871

 

Thank you! 

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @lf7988,

 

can you kindly show us the expected output? 

Qiu
21 - Polaris
21 - Polaris

@lf7988 

I guess this is what you mean?

0118-lf7988.PNG

Labels
Top Solution Authors