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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average calculations

Hi,

I am trying to work out an average of a sum. Can anyone help? The calculation shows a percentage of utilisation.

= (sum(total_anaesthetic_time ) + sum(total_theatre_time)) / sum (total_scheduled_mins)

Does anyone know how I would get an average for this? I need it so I can break it down to specialty level and freeze the graph at this average when the user drills down further to consultant etc..

Thanks,

3 Replies
Not applicable
Author

try this

= (sum(total_anaesthetic_time + total_theatre_time)) / sum (total_scheduled_mins)

or try this


= (sum(time(total_anaesthetic_time) + time(total_theatre_time))) / sum (time(total_scheduled_mins))

or try this

= (sum(time(total_anaesthetic_time,'hh:mm') + time(total_theatre_time,'hh:mm'))) / sum (time(total_scheduled_mins,'hh:mm'))

or try this simply

= (time(total_anaesthetic_time,'hh:mm') + time(total_theatre_time,'hh:mm')) / time(total_scheduled_mins,'hh:mm')

Not applicable
Author

for find the average sum of two field then try this

sum(field1 + field2)/count(field1)

or this


(sum(field1) +sum( field2))/count(field1)

hic
Former Employee
Former Employee

If you want the average pecentage, you probably need an Aggr() function. See more on

http://community.qlik.com/blogs/qlikviewdesignblog/2013/07/29/averages

HIC