Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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

Accepted Solutions
Highlighted
5 Replies
Highlighted
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;
Highlighted
Highlighted
Digital Support
Digital Support

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.
Highlighted
Contributor II
Contributor II

Thank you @Kush 

it worked for me!

 

Highlighted
Contributor II
Contributor II

Thank you @Brett_Bleess, this problem has been solved!