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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
luiz_damascena
Contributor III
Contributor III

Is it possible to display only a few rows from a table in a list object?

In my script, I load the data from a table via SQL, obtaining the following result, by hypothesis:

code, description

1, FORD

2, VOLKSWAGEN

3, FIAT

I use the code as field in my list object.

But I want that the code 3 not to be displayed, only in this list object.

It would be something like a condition for displaying the line.

I can not put a condition on the select, since the listing with all rows is required to populate other list objects.

And I would not want to replicate SQL, creating another table, without that line.

Is it possible to display only a few rows from a table in a list object?

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

Yes, in the listbox properties scroll down to the end of the fields listed and select use an expression. For this expression use something like

=Aggr(Only({<code={"*"}-{'3'}>} code),code)

View solution in original post

2 Replies
stigchel
Partner - Master
Partner - Master

Yes, in the listbox properties scroll down to the end of the fields listed and select use an expression. For this expression use something like

=Aggr(Only({<code={"*"}-{'3'}>} code),code)

luiz_damascena
Contributor III
Contributor III
Author

Thank you!

Clean and functional!