Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

The Condition with "contains"

Hi guys!

I need to write a condition like it the value contains "A" then I should exclude them in my script.

Does anybody know how can write this condition?

6 Replies
Anonymous
Not applicable
Author

you  can  share your script please?

jpenuliar
Partner - Specialist III
Partner - Specialist III

If it is in your Load script, you can make use of "where" clause.

e.g.

Load A,A+B+C resident tab1 where A>B;

Anonymous
Not applicable
Author

one of the ways to do it is, put this filter in your where clause,

Table1:

Load

yourfield,

//otherfields

Where substringcount( yourfield,'A') >0

jpenuliar
Partner - Specialist III
Partner - Specialist III

where A = "Good"

where A <> "Bad"

vvvvvvizard
Partner - Specialist
Partner - Specialist

create a new table

new_table :

load *

resident old_table_name

where not fieldname =wildmatch(fieldname,'*contains text here*');

Colin-Albert

To exclude all records that contain the string 'XYZ' in field A use index in the where clause

load

     A,

     B,

     C,

     etc

from .....

where index(A, 'XYZ') = 0

;