In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start 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