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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filtering Strings

I have a list box that has data such as this. 

Box 301

Box 302

Box 303
Box 701

Box 702

Box 310

I want it to only list the items that start with "Box 3....."

How can I do this?

~Norman Rea

1 Solution

Accepted Solutions
sinanozdemir
Specialist III
Specialist III

Hi,

Please see the below:

Capture.PNG

Hope this helps

View solution in original post

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

in the field list use the last item "Expression" and write:

If(left(myField, 5)='Box 3', myField, Null())

let me know

sunny_talwar

Use an expression like this one:

If(WildMatch(FieldName, 'Box 3*'), FieldName)

giakoum
Partner - Master II
Partner - Master II

in many ways :

load

if(left(yourfield, 4)='Box 3', yourfield) as yourfield

or

by using wildmatch:

if(wildmatch(yourfield etc.

petter
Partner - Champion III
Partner - Champion III

Instead of selecting a field select "expression" on the list of fields and put in this expression:

If( myField Like 'Box 3*' , myField )

sinanozdemir
Specialist III
Specialist III

Hi,

Please see the below:

Capture.PNG

Hope this helps

fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

You can create an expression like:

if(left(SubField(Field,'Box ',2),1)='3',Field)

Not applicable
Author

These are great and work.  Will any of these work in Qliksense?  I need it to work in both places.  Can't seem to get it to work there.

~Norm

Not applicable
Author

Actually I got it.

Thanks it worked!

~Norman Rea