Alteryx Designer Desktop Discussions

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

Weighted average with summary tool?

CullenJ
6 - Meteoroid
 

With this data and this summarize tool, the average net price of item A comes out as 3.00. How can I get it to be a weighted average (weighted by Qty) to give something like 3.82 instead?

 

Screenshot 2024-06-26 104912.png

Screenshot 2024-06-26 104949.png

6 REPLIES 6
aatalai
14 - Magnetar

have you used the weighted average tool?

 

weighted average tool.PNG

CullenJ
6 - Meteoroid

I haven't tried it yet - in my real use case, I am doing groupby on about 4 fields and then various actions (sum etc) on several other fields. I guess the best way would be to use this weighted average tool alongside the summarize and do a join to combine them?

CullenJ
6 - Meteoroid

This seems to work (combining summarize, weighted average tool, and join) - I suppose there's no way to do it with fewer nodes?

aatalai
14 - Magnetar

@CullenJ yes you can join; use the weighted average tool with grouping

Raj
15 - Aurora

@CullenJ 
two way for getting weighted average are attached
hope this help.

CullenJ
6 - Meteoroid

Thanks Raj, if I want to get weighted average of multiple fields, is that possible using the weighted average tool? If not, it seems like doing your way with the formulas and the summarize is better?

Labels