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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dropping text from a string

Hi ... I want to load the below field, 'SALES_NUMBER', but excluding the string 'AB' wherever it exists.

222100

223190

AB224190

AB225190

So output should be :

222100

223190

224190

225190

12 Replies
sunny_talwar

Use a Where Statement in that case:

LOAD YourField

FROM Source

Where Left(YourField, 2) = 'AB';

Not applicable
Author

Thanks Sunny your answers are spot on as usual. .

Robert I will bear in mind the purgechar function for future ... thanks

sunny_talwar

I am glad I was helpful