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: 
Not applicable

Disabling "Other" in a listbox...

Hi Folks,

In my data, I have many records that are tagged "Other" or "Unknown" that we dont want to search on.

is there a way to disable these choices in the list box?.  Any Direction would be appreciated.

thanks

-L

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

Load *, if(Not Match(FieldName, 'Other', 'Unknown'),FieldName) As NewField from tablename;


Use NewField in listbox and chart as well.

Or, In Front End,

if(Not Match(FieldName, 'Other', 'Unknown'),FieldName)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

8 Replies
Chanty4u
MVP
MVP

u can try

=if( ([Year]<>' ' AND [Year]<>'0' AND [Year]<>'N/A'), [Year])


or


try

=If( [urfield] > 0 , [urfield])

Kushal_Chawda

either you create the separate field as

if(not wildmatch(lower(YourField),'*others*','*unknown*'),YourField) as NewField

Now use this NewField in lisbox

or in lisbox expression put the below expression

aggr(if(not wildmatch(lower(YourField),'*others*','*unknown*'),YourField),YourField)

tamilarasu
Champion
Champion

You can try list box expression as

=If(Not Match(FieldName, 'Other', 'Unknown'),FieldName)


or


=aggr(only({<FieldName-={'Other', 'Unknown'}>}FieldName),FieldName)

Chanty4u
MVP
MVP

Dimension :  =IF(field<> 'other', field)

raman_rastogi
Partner - Creator III
Partner - Creator III

Try this one


Listbox Expression

=If( field > 0 , field)



Not applicable
Author

Hi,

Try this:

Capture_Others.JPG

MayilVahanan

Hi

Try like this

Load *, if(Not Match(FieldName, 'Other', 'Unknown'),FieldName) As NewField from tablename;


Use NewField in listbox and chart as well.

Or, In Front End,

if(Not Match(FieldName, 'Other', 'Unknown'),FieldName)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

this one worked thank you