Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

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

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