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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Best 3 Average

Hi,

I'm struggling to get a 'best 3 average' formula to calculate and display for all values.  I was able to get the total average displaying for all but not the best 3 average.  Image shows example data and the desired output.  Any help would be greatly appreciated.

Capture.PNG

Labels (1)
12 Replies
Anonymous
Not applicable
Author

Hi ,


Use the below code in expression


=SUM(TOTAL<Year>(aggr((if(Rank(SUM(Number),4)<=3,sum(Number))),Year,Name)))/3



Thanks,

Venkata Sreekanth

shiveshsingh
Master
Master

Hi

i have already attached the app for our reference.

any ways use this expression

sum(TOTAL<Year>(aggr((if(Rank(sum(Number),4)<=3,sum(Number))),Year,Name)))/3

shiveshsingh
Master
Master

And yes, please close the thread now by marking correct/helpful answers