Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to be able to calculate an average sales per salesperson per department for my app. I have several different departments, each with a corresponding sales figure, and the number of people working in each department may also vary. Now I want to know how they stack up,and therefor calculate an average for them all, however I need to have an dynamic calculation since the different numbers may change.
I need a formula that looks at my the total sales for each department av then divides it by the total number of ppl working at that department. My formula looks like this (but i cant get it to work properly):
(SUM (Sales)/COUNT(DISTINCT[Salesperson]))
Cheers,
Nils
See the attached Qvw
Try
(SUM (Sales)/ aggr(COUNT(DISTINCT[Salesperson]), Department) )
hi
try this
SUM (Total Sales) / COUNT(Total [Salesperson])
thanks for all the replies, however im sorry but none of these seem to work. they are all returning blank tables. this feels like a no brainer (i do this in excel all the time). could you please have another look?
Please share some of your (dummy) data in a Qlikview document.
sorry, yeas, here it is....
See the attached Qvw
excellent tnx!