Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Weighted average

Hey Guys

I need to create Weighted Average for each country e.g

Columbia :  every row to multiply (H qty* H sul)/Sum(Total(H qty)

Capture.JPG

At the end this result is good but when i cancel the selection on Country Name the number is change i need to do aggr ?

Capture.JPG

need your help please see my app.

David

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Sum(HADERA_SUL_VALUE*HADERA_QTY)/Sum(TOTAL <COUNTRY_NAME> HADERA_QTY)

View solution in original post

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Yes, you need to Aggr according the dimensions you need to weight

sunny_talwar

May be this:

Sum(HADERA_SUL_VALUE*HADERA_QTY)/Sum(TOTAL <COUNTRY_NAME> HADERA_QTY)

Anonymous
Not applicable
Author

Thank you for your help !