Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Limited records in List box

Hi All,

How to show some of few records in to the list box .

For Ex:

The below counties are present in my list box as Country

MAURITIUS

SWEDON

USA

NEW ZEALAND

SOUTH AFRICA

NAMIBIA

IVORY COAST

THAILAND

UGANDA

CANADA

MYANMAR

KENYA

SRI LANKA

MALAYSIA

GREECE

CROATIA

NETHERLAND

AUSTRALIA

UNITED KINGDOM

CHILE

IRELAND

UKRAINE

BOLIVIA

TANZANIA

YEMEN

INDIA

GERMANY

But I want to show only few like below

SRI LANKA

UNITED KINGDOM

IRELAND

TANZANIA

INDIA

Thanks

1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

The best thing is to filter out the needed countries in the script as a separate field. The other option is you can use below in the List box -expression:

=if( mixmatch([Country], 'SRI Lu ANKA','UNITED KINGDOM','IRELAND','TANZANIA','INDIA'), [Country])

View solution in original post

8 Replies
Chanty4u
MVP
MVP

create a bookmark ..and apply that bookmark

orelse   chk option    Hide excluded in general tab

Not applicable

‌Hi

YOu can limit the data in script

and also you can limit the values via put condition in expression tab of list box

prma7799
Master III
Master III
Author

How can we write condition in expression tab....

marcus_sommer

You could use a listbox-expression like:

if(match(Country, 'A', 'B', ...), Country)

- Marcus

Kushal_Chawda

It's better You create the field in script like below

LOAD ...

if(match(Country,'SRI LANKA','UNITED KINGDOM','IRELAND','TANZANIA','INDIA') , Country) as CountryNew

...

FROM table

Now you can use this Field in Listbox

Update :Corrected IF

trdandamudi
Master II
Master II

The best thing is to filter out the needed countries in the script as a separate field. The other option is you can use below in the List box -expression:

=if( mixmatch([Country], 'SRI Lu ANKA','UNITED KINGDOM','IRELAND','TANZANIA','INDIA'), [Country])

sunny_talwar

May be flag these in the script as 1 and then use the flag like this:

If(Flag = 1, COUNTRY)

Not applicable

HI

GO to list box properties

there select expression option under the field option in general tab

write logic a below

=if(match(country,

SRI LANKA

UNITED KINGDOM

IRELAND

TANZANIA

INDIA

)

PLz put country names in quots