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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
rmuhammad
Creator
Creator

something wrong in Average totals

Hi All

when I do totals for Avg it is not calculating correctly. Cant find logic how are these calculated. How can I fix this? please help. see attached sample app

avg.PNG

Labels (1)
1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Try this in your expr:

= AVG(Aggr(avg(HourlyRate), YEAR, DEPT, [EMP Start Dt]))

View solution in original post

3 Replies
vishsaggi
Champion III
Champion III

Try this in your expr:

= AVG(Aggr(avg(HourlyRate), YEAR, DEPT, [EMP Start Dt]))

sunny_talwar
MVP
MVP

Create your calculated dimension in the script and try this expression

Avg(Aggr(Avg(HourlyRate), YEAR, DEPT, [service yr]))


Capture.PNG

rmuhammad
Creator
Creator
Author

Thanks. it works