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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

classify if text includes

Hi,

does anyone have any idea how to select lines based on a part of text a particula field includes?

e.g.

I have the following account names:

WIP manual postings
Commerc inventories -goods in transit exchange rat
Good In Transit - Transfer
Com.inv.goods received/invoice received adjustm.
Com.inv.goods in transit intercomp.del.goods rec.
Com.inv.goods in transit-goods shipped to 3rd part
Com.inv.goods in transit-interc.dlv.goods invoic.
Com.inv.GIT dlv.goods invoic. Own wh deliv

How to simply select these lines that have 'GIT' or 'goods in transit' or 'Goods In Transit' and classify them as [GIT accounts]?

Thanks for any tip.

J.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

try

Load

..

if(wildmatch([account names],'*GIT*','*Goods in Transit*','*goods in transit*'),1,0) as [GIT accounts],

...

from ...;

Hope this helps,

Stefan

View solution in original post

2 Replies
swuehl
MVP
MVP

try

Load

..

if(wildmatch([account names],'*GIT*','*Goods in Transit*','*goods in transit*'),1,0) as [GIT accounts],

...

from ...;

Hope this helps,

Stefan

Not applicable
Author

Works for me. Thank you:)