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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Char to num coversion

Hi,

I have a number as a character 1.25 and I need to sum all data. How do I convert this char to a number in my script?

num() gives a - in stead of a number.

Greetings,

Ruud

1 Solution

Accepted Solutions
Not applicable
Author

num#(1.25, '#.##') did the trick  where 1.25 is a value of a datafield called Uren  -> formula: num#(Uren, '#.##')

Thanx all!

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use the num# function. It takes a string and you can specify the format so the string can be made a number.


talk is cheap, supply exceeds demand
manideep78
Partner - Specialist
Partner - Specialist

No problem. No need to convert that into number. QlikView automatically treats it as a Number. QlikView doesn't have data types.

Still you are facing any probelm use Num#() function.

refer help for this.

Not applicable
Author

num#(1.25, '#.##') did the trick  where 1.25 is a value of a datafield called Uren  -> formula: num#(Uren, '#.##')

Thanx all!