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: 
john_henry
Contributor III
Contributor III

How to convert text to string and sum

I have a field from a QVD that is text and I want to convert it to a number and sum it.  I'm using the following syntax in the load script, but is not working:

sum(num#("Header Net Value in USD"))

1 Solution

Accepted Solutions
MayilVahanan

Hi @john_henry 

Suppose, it contains any symbol like "$", then mention the number format in Num# function and try it out

Ex: Sum(Num#("Header Net Value in USD",'$#,##0'))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi @john_henry 

Suppose, it contains any symbol like "$", then mention the number format in Num# function and try it out

Ex: Sum(Num#("Header Net Value in USD",'$#,##0'))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
john_henry
Contributor III
Contributor III
Author

thanks @MayilVahanan !  It works