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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
deailes
Contributor
Contributor

Remove special character (160) from number (not string)

Hiya

 

I have a 6 digit number copied from webpages in an excel document i am importing. It has trailing special character at the end of the number on some of the entries. ie '123456 '

 

I can see how to remove special character from a string in the tMap using:

row1.inputField.replaceAll("\\D", "") 

but how would i achieve the same thing if my input file column is a number and i want to keep the column as a number (int).  Do i have to convert it to string first and then back again??

 

 

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@deailes , first you need to read as a string from the file in tfileinputdelimitted and then tmap you can convert .sting to int after removing special characters.

View solution in original post

1 Reply
manodwhb
Champion II
Champion II

@deailes , first you need to read as a string from the file in tfileinputdelimitted and then tmap you can convert .sting to int after removing special characters.