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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ema92
Contributor II
Contributor II

Value from text to number

Hello,

i have a problem to convert money that comes from text into numer. Example:
i have many records like this 00000000000058894,00 and i want convert into number. I tried num or num# and other composite formula but none works.

 

Thanks

 

Best regards

Labels (2)
1 Solution

Accepted Solutions
Ema92
Contributor II
Contributor II
Author

Resolved with the function ReplaceRegex like this:


ReplaceRegEx("Importo totale", '^0+', '') with this function i can delete the zeros until found a number different from zero.

 

Thanks

View solution in original post

5 Replies
WeLoveQlik
Partner - Creator
Partner - Creator

Qlik is likely misinterpreting this string due to the comma. Try to use the REPLACE() function to change the Comma to a '.' and then use NUM or NUM# as you have already tried.

 

If all of your numbers come in like this 

You might also try changing the following on the main tab

SET DecimalSep=',';

IPC Global: ipc-global.com
Ema92
Contributor II
Contributor II
Author

Tried but not works, thanks

WeLoveQlik
Partner - Creator
Partner - Creator

Are you doing this in an expression or in the script?

IPC Global: ipc-global.com
Ema92
Contributor II
Contributor II
Author

in load script

Ema92
Contributor II
Contributor II
Author

Resolved with the function ReplaceRegex like this:


ReplaceRegEx("Importo totale", '^0+', '') with this function i can delete the zeros until found a number different from zero.

 

Thanks