Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average Count

I am trying to find the average using count for the following

Count({<TERM_CODE_EFF={'2012-13'},COLLEGE_CODE={'AF','BF','HF','SF'},[No Attendance]={'X'}>}[No Attendance])/Count(Total{<TERM_CODE_EFF={'2012-13'},COLLEGE_CODE={'AF','BF','HF','SF'},[No Attendance]={'X'}>}[No Attendance])

However I am not gettign the result I expect though I have used thsi tryp of Set Analysis sucessfully in the past

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Your expression returns only one number, not an average. Try something like avg(aggr( myexpressionhere, mydim1, mydim2) and replace myexpressionhere with your expression and mydim1,mydim2 with the dimensions of your chart.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Your expression returns only one number, not an average. Try something like avg(aggr( myexpressionhere, mydim1, mydim2) and replace myexpressionhere with your expression and mydim1,mydim2 with the dimensions of your chart.


talk is cheap, supply exceeds demand
Not applicable
Author

That worked a treat thank you