Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

String to number Num & NUm# not working

Hi All, how to convert a string to number? I have already tried Num and Num# functions. I am fetching data from SAP report. Please help. Thanks in advance.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

The num# function is used to create numbers from text values.  num#(MyTextValue, '#,##0.00') as MyNumber

Note that num# is a qlikview function, so you cannot use it in sql statements which are executed by the database server and not by qlikview.


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
PrashantSangle

Hi,

Can you elaborate with example

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Gysbert_Wassenaar

The num# function is used to create numbers from text values.  num#(MyTextValue, '#,##0.00') as MyNumber

Note that num# is a qlikview function, so you cannot use it in sql statements which are executed by the database server and not by qlikview.


talk is cheap, supply exceeds demand
rajeshvaswani77
Specialist III
Specialist III

Can you try this

Num(KeepChar(yourstring,'0123456789'))

thanks,

Rajesh Vaswani

MarcoWedel

A string should be implicitly converted to a number during load if it can be interpreted as numeric.

Without giving an example it's rather impossible to tell the cause of your issue.

hope this helps

regards

Marco

rajeshvaswani77
Specialist III
Specialist III

Can you try this

Num(KeepChar(yourstring,'0123456789'))

thanks,

Rajesh Vaswani

Not applicable
Author

Thank you all for your quick responses.