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: 
deepakqlikview_123
Specialist
Specialist

Removing string

Hi all,

i want to remove string from column starting with DI99.

Can u plz suggest how to proceed for this.

Thanks,

15 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Load

....

If(left(MyField,4)='DI99',Mid(MyField,5),MyField) as myfield

...

From

....

preminqlik
Specialist II
Specialist II

Load *,

if(wildmatch(field,'DI99*'),keepchar(field,'0123456789'),field)               as               Newfield

from path;

deepakqlikview_123
Specialist
Specialist
Author

Hi all,

I want to apply this condition in where statement after load .

Thanks

tresesco
MVP
MVP

Try like:

Where Not WildMatch(YourField, 'DI99*');

Not applicable

If you want to filter records this should work..

Load * From Table

Where wildmatch(Column,'*DI99*') <> 1;

Thanks,

Prabhu

deepakqlikview_123
Specialist
Specialist
Author

Hi All,

I am using condition

not exists(DealerToDealerInvoiceCode,'*DI99*')

Seems it works f9.

Other condition not giving proper results.

Plz suggest.

Thanks

tresesco
MVP
MVP

If your first post was what you wanted, this exists() would not be the right one. Be sure that you are getting right output.

jagan
Luminary Alumni
Luminary Alumni

Hi Deepak,

Try like this

LOAD

*

FROM Datasource

Where Not WildMatch(YourField, 'DI99*');


OR

LOAD

*

FROM Datasource

Where YourField like 'DI99*';



OR

LOAD

*

FROM Datasource

Where Left(YourField, 4) = 'DI99';


Regards,

Jagan.

deepakqlikview_123
Specialist
Specialist
Author

Hi Tresco,

I do not want those rows having string DI99 in 1 perticular column.

Thanks