Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Weighted average

Hello,

I try to calculate weighted average

The goal is to calculate weighted average sales per employee.

The formula is:

((Sum sales month x * sum employee in month x) + (Sum sales in month y * sum employee in month y)/sum employee (in month x)+ sum employee (in month y))/ sum employee (in month x) + sum employee (in month y))/count month)

For example:

In month X the sales is 100 $ and the employee number is 10

In month Y the sales is 200 $ and the employee number is 5

The formula will be:

(100*10)+ (200*5)/(10+5)/

10+5/2

How I write this formula in QV?

Thank you

Elad



3 Replies
tabletuner
Creator III
Creator III

i guess something like:

=

sum(Sales*[Employee #])/sum([Employee #]

)





Not applicable
Author

Hi Elad,

I have attached an example application and hope this gets you going.

Not applicable
Author

Thank you for your answers,

I'm looking for the way to see in my Y axis our company division and in axis X the employee amount.