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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
robert_gansel
Contributor III
Contributor III

string into number (LOAD)

Hi,

I am currently searching for a simple way to convert a string into a number.

E.g.: I have the string "€ 5000". As it is not possible to calculate with this I would like to just load the number out of this string and save it as a num value.

Is there any simple solution for this?

Thanks in advance,

Robert

Labels (1)
7 Replies
Anil_Babu_Samineni
MVP
MVP

Yes, You must use like below from your environment

SET MoneyFormat='#,##0.00;(#,##0.00)';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sasiparupudi1
Master III
Master III

May be try

KeepChar(YourField,'0123456790') as NewField

sunny_talwar
MVP
MVP

You can also try this

Money#('€ 5000', '€ ###0')

or this for your field

Money#(FieldName, '€ ###0') as FieldName

divya_shinde
Partner - Contributor II
Partner - Contributor II

Try this

num(keepchar('€ 5000',0123456789))

robert_gansel
Contributor III
Contributor III
Author

That's exactly what I was searching for.

Many thanks!

sunny_talwar
MVP
MVP

Great

sasiparupudi1
Master III
Master III

Hi Robert

Please close this thread by marking a correct answer and any helpful answers

Sasi