Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Data Spillovers

Hi,

I am importing a large dataset that has spillover issues, e.g. the field CITY has some numerical values, garbage values etc. Now is there way I can keep these CITY values as blanks? I don't want to skip all the fields, just to make the CITY as blanks where it finds numbers or special characters like #, &*

Thanks

1 Solution

Accepted Solutions
Ralf-Narfeldt
Employee
Employee

This will replace bad values in CITY, the ones containing a character listed in the FindOneOf second argument, with an empty string to a field called CleanCity.

LOAD If(FindOneOf(City,'0123456789*!"#¤%&/'),City, '') As CleanCity;

You can of course add more characters to screen for.

View solution in original post

5 Replies
sujeetsingh
Master III
Master III

Wildmatch can help you.

sunilkumarqv
Specialist II
Specialist II

try like this

Data:

LOAD PurgeChar(City,'@*#') as City;

LOAD * Inline

[

City

Chennai

Chennai#

Hyd@

Bangalore*

];

Ralf-Narfeldt
Employee
Employee

This will replace bad values in CITY, the ones containing a character listed in the FindOneOf second argument, with an empty string to a field called CleanCity.

LOAD If(FindOneOf(City,'0123456789*!"#¤%&/'),City, '') As CleanCity;

You can of course add more characters to screen for.

Anonymous
Not applicable
Author

Thanks guys, appreciate the help

Ralf-Narfeldt
Employee
Employee

Great! Please mark answers as Helpful or Answered!