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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ena1309
Contributor III
Contributor III

TOP N Values

Hi guys, 

I have a table chart and i want it to show the top 10 values. (so it means first 10 rows)
how to do that?

thank you
ena

Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra

@ena1309  or you can use dimension aggr like :

suppose you have this input table;:

Taoufiq_Zarra_0-1653469157413.png

 

and you want to show only first 10 dimension (Flag) based on row number :

use in dimension :

=aggr(if(rowno()<=10,Flag),Flag)

and suppress null value

in measure -> your measure

output:

Taoufiq_Zarra_1-1653469248346.png

 

 

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
Raja2022
Contributor III
Contributor III

Please follow this link and hope this helps..

https://community.qlik.com/t5/QlikView-App-Dev/Top-N-values/td-p/505467

Also you can do it based on "Dimension limit" by following this link: https://k-shivanand.medium.com/top-n-chart-in-qlikview-68973b2e7a31

 

Taoufiq_Zarra

@ena1309  or you can use dimension aggr like :

suppose you have this input table;:

Taoufiq_Zarra_0-1653469157413.png

 

and you want to show only first 10 dimension (Flag) based on row number :

use in dimension :

=aggr(if(rowno()<=10,Flag),Flag)

and suppress null value

in measure -> your measure

output:

Taoufiq_Zarra_1-1653469248346.png

 

 

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉