The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Weighted average with summary tool?

CullenJ
Asteroid
 

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 ANTWORTEN 6
aatalai
Aurora

have you used the weighted average tool?

 

weighted average tool.PNG

CullenJ
Asteroid

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
Asteroid

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

aatalai
Aurora

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

Raj
Nebula

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

CullenJ
Asteroid

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?

Beschriftungen
Top-Lösungs-Autoren