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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read 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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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