Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewforum
Creator II
Creator II

How to fetch only those records which contain the required string?

If the column contains following records/values. How can we fetch only those records which contains TEST? for example, in below data set 2 records contain "TEST". So my question is how can i fetch only that and ignore rest of the records. Please help! It is little urgent

tfgty@erery@yktyik@ytyityi@yityi

tytyityi@dhrtrtu@TEST@rtrt@trurtu

tut@gttyty@gtjgvj@ttrurtu@tgrujrtu

11 Replies
MayilVahanan

HI

Try something like this

If(FindOneOf('tytyityi@dhrtrtu@TEST@rtrt@trurtu','Test'),'Test')

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

Hi,

Use

if(Wildmatch(Fieldname,'*TEST*'),Fieldname)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
maxgro
MVP
MVP

where wildmatch(yourfield, '*TEST*')

Not applicable

I am assuming delimiter used is symbol @ and also you are looking to match TEST (with case sensitivity) and ignoring records that may contain something as DETEST or TESTIMONIAL.

Load * from <your_table_name or file_name> where match (Field_Name,'@TEST@');

manideep78
Partner - Specialist
Partner - Specialist

Hi,


You can simply use where condition in the script.

Load

---------

---------

---------

where <Your_FieldName> like '*TEST*' ;


Hope this helps.

Regards,

Manideep

deepakqlikview_123
Specialist
Specialist

Try

where wildmatch(yourfieldname, '*TEST*')=0 at the end of load statement

Not applicable

Hi Manideep. Just a question on LIKE. Does it exist in QV? I am sorry I have not seen it being used neither I could find it in QV Help. Though it is used in native SQL statements. Am I making a correct statement?

qlikviewforum
Creator II
Creator II
Author

where wildmatch(yourfield, '*TEST*')

thanks all, above one looks good. We can use Index too.

Colin-Albert

There is no LIKE function in QlikView.

You can use the match functions - match , mixmatch, wildmatch

or index to get the equivalent of like.

e,g,    where index(field, 'TEST') > 0