Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

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