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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Requirement on table box

Hi

i have table box in that i have 5 fields

for example:

City            population     Growth   P%   Status

London,          22000          2%     1%     Green

New York        12500          1%     0.5%   yellow

Spain               52000         29%   5%    Green

Delhi               1300             0%    2%    Red

Hyd                  15000          5%    1%    green

i have to display only last 3 records  how to do this .i am using table box here

Thanks

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Create a straight table chart with all your 5 fields as dimension and a single expression

=Only({<City = {Spain,Delhi,Hyd}>} City) // adapt the list of cities as needed

On presentation tab of chart properties, hide the expression column.

Is this what you want?

View solution in original post

15 Replies
sunny_talwar
MVP
MVP

Is there a reason you want to do this in table box? Straight table won't work? and why the last 3 records? What is so unique about them?

swuehl
Champion III
Champion III

Select Spain, Delhi and Hyd

You can't use expressions or filters in the table box object, so maybe use a straight table chart if you need a filter within the object.

sunny_talwar
MVP
MVP

I was thinking of flagging the last three rows with 1 and rest of the 2 as null and then on the properties tab going to select 'Omit Rows Where Field is Null' for the flag dimension. But I really don't know what the goal is

Capture.PNG

swuehl
Champion III
Champion III

Might be a good idea anyway..

Not applicable
Author

please give expression for Straight table

sunny_talwar
MVP
MVP

What is the logic? Unless we know why you want to show the last 3 it would be difficult to offer a solution

Not applicable
Author

i have 55 records in Field City but i have to show the records only 5 among that 55 in any table or straight table

Not applicable
Author

i have to show the data only few particular Cities(Only 5records)

swuehl
Champion III
Champion III

Create a straight table chart with all your 5 fields as dimension and a single expression

=Only({<City = {Spain,Delhi,Hyd}>} City) // adapt the list of cities as needed

On presentation tab of chart properties, hide the expression column.

Is this what you want?