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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exclude (filter out) certain values from List Box

Hi,

This "should' be an easy one.

I'm using a list box as a filter for my data presentation.  There are some blanks and unwanted values in my data that I do not want to show in the list box.  I'm not able to filter them out.

For example, the data contains only these values (2015, 2016, 2017, N/A, 0, blank cells)

I want to only show 2015, 2016, 2017 in my list box.  I'm using an expression to try to filter out the other stuff.

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

Unfortunately...not working. 

Please advise.

Thank you

1 Solution

Accepted Solutions
swuehl
MVP
MVP

I think you want to use the AND operator here:

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


or


try

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

View solution in original post

4 Replies
swuehl
MVP
MVP

I think you want to use the AND operator here:

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


or


try

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

Not applicable
Author

Hi,

You can try this

=if (len ([Year]>3, [Year])

Philippe

Not applicable
Author

Hi trung.nguyen,

You can try 'If' Expression in the list box as below

=if(Year <> '0',

if(Year <> 'N/A',

if(Year <> ' ', Year)))

QVW Attached.

Not applicable
Author

Sorry i have forgotten à ')'.

=if (len ([Year])>3, [Year])