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

Calculating average

hey everyone.

So i am creating a report that needs to calculate the average per department.

My data is as followed:

  

NameDepartmentCalls
MikeA17
JasonA12
JanA67
WesleyB34
DianaB28
LauraB95
BettyC19
MichaelC12
AnnaC27
Average 34.56
DepartmentCalls
A96
B157
C58
Average103.67

Now i dont want to use straight tables or pivot tables, for this specific report i am using text objects for better visualization.

The formula in the text object is:

=Num(Sum({<Week={$(vCurrentWeek)}>}distinct tAgentCalls),'#,##0.00')

tAgentCalls being the field in which i have the data of the amount of calls obviously.

Now if i would do an average on this formula it would calculate the average of all employees in that selection.

Which would result in the average as seen above 34.56.

While i need it to calculate the average of the departments they are in.

Now on this specific data i have 3 people on each department, but as you can imagine this varies.

Can anybody help me with this.

10 Replies
Not applicable
Author

Hey Oleg,

Sorry for the confusion, i indeed meant i only needed a calculation on a department level instead of on all departments.

My apologies.

Thank you for your time.