Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Shumaila
Contributor II
Contributor II

How to select top 10 values from a field

Capture.PNG

in this table, I want the top 10 values of Pen.

The output should be like 

2.PNG

1 Solution
5 Replies
sergio0592
Specialist III
Specialist III

Hi,

Something like

tab1:
LOAD * INLINE [
Pen
-69
-70
-93
-51
-57
-61
-72
-64
-60
-71
-70
-78
-54
-65
-72
-87
-74
-74];

Tab2:
load Pen, RowNo() 
Resident tab1
where RowNo() <9;

drop table tab1;
Brett_Bleess
Former Employee
Former Employee

Going to add one other item as was not sure exactly what you were trying to do, so this one may be closer:

https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497

https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis-Revisited/ba-p/1473684

If one of the others did work, we would appreciate it if you would close the thread by using the Accept as Solution button on the post(s) that did help.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Shumaila
Contributor II
Contributor II
Author

Thank you @Kushal_Chawda 

it worked for me!

 

Shumaila
Contributor II
Contributor II
Author

Thank you @Brett_Bleess, this problem has been solved!