Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Omitting certain string descriptions from a field.

Hello there folks,


I am trying to figure something out here, I would like to remove all descriptions from a field which starts with the character '.' and '-'.


I have tried the below script but failed badly, could anyone point me in the right direction or advise on what am doing wrong here.


Table_A:

Load

[Country],

[Date],

[BrandDesc]

from ....

where [BrandDesc] <> '.*' and [BrandDesc] <> '-*';

Thanks in advance.

Best Regards,

Ram

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Use WildMatch() function. Like:

Table_A:

Load

[Country],

[Date],

[BrandDesc]

from ....

where Not WildMatch([BrandDesc], '.*' , '-*' );

View solution in original post

6 Replies
tresesco
MVP
MVP

Use WildMatch() function. Like:

Table_A:

Load

[Country],

[Date],

[BrandDesc]

from ....

where Not WildMatch([BrandDesc], '.*' , '-*' );

Sokkorn
Master
Master

Hi Ram,

Are you load data from QVD? If yes, then try

Where not WildMatch([BrandDesc],'.*','-*');

Not applicable
Author

Thanks! Spot on.

Not applicable
Author

Thanks! Spot on.

Not applicable
Author

Hi,

If you only want to remove these description but keep the rest of the fields for each record of the table I suggest using the following:

Table_A:

Load

[Country],

[Date],

If(not( Left([BrandDesc],1)='.') or not( Left([BrandDesc],1)='-'), [BrandDesc] ,null()) as [BrandDesc]

from ...;

Regards

Not applicable
Author

Thanks!