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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to set limit to a table chart

Hello qlikers 🙂 ,

I have a chart table.  I only want 5 rows. How could I set a limit to the chart? I only find solution in the load script, but I want it directly in the chart.

Thank you in advance! 🙂

 

EDIT:

=aggr(if(rank([Time] ,-[Time] )<=5, [Time] ),[ID],[Time], [Title] )

I have this, but it shows me all values. 

https://community.qlik.com/t5/New-to-Qlik-Sense/limiting-and-ranking-data-on-a-simple-table-based-on... 

Labels (1)
1 Solution

Accepted Solutions
lorenzoconforti
Specialist II
Specialist II

This depends on your visualization but try:

=aggr(if(rank([Time] ,-[Time] )<=5, [Time] ),[Time] )

 

Also make sure you unselect include null values in your dimension

View solution in original post

1 Reply
lorenzoconforti
Specialist II
Specialist II

This depends on your visualization but try:

=aggr(if(rank([Time] ,-[Time] )<=5, [Time] ),[Time] )

 

Also make sure you unselect include null values in your dimension