Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
edwinmatlapeng
Partner - Contributor III
Partner - Contributor III

Converting qlikview text field to numeric field

Hi All,

I run scripts to load QVD's from text files. Problem is my money fields appear and behave as text fields. for example, on a sum function
I get null values and when I put them on the sheet as list  boxes you can see the numbers with leadting zeroes! I have already tried the Num(Amount), Num#(Amount,'#'), num(Amount) and the Amount field would not yield.

Please help.

14 Replies
edwinmatlapeng
Partner - Contributor III
Partner - Contributor III
Author

Strange thing is when I use Num without the hash, the values disappear!

Sokkorn
Master
Master

Hi Edwin,

Try this in your load script

Mid(Credit, FindOneOf(Credit, '123456789'))     AS [Credit],

....

Regards,

Sokkorn

Sokkorn
Master
Master

Or REPLACE(LTRIM(REPLACE(Credit, '0', ' ')), ' ', '0') as Credit

edwinmatlapeng
Partner - Contributor III
Partner - Contributor III
Author

Sokkorn, man! Thank you so so so much. Been awake all night! Thank you!!

edwinmatlapeng
Partner - Contributor III
Partner - Contributor III
Author

this solution works as well! Thank you, man!