Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

convert varchar to num and add 100000 to the field

Hi there ,

I have a varchar(20) datatype field in db,

I have convert that field in qlikview to number and add  100000 to that field ?

Can I write the script like this -

AP:
LOAD  Num(Admission No) + 100000 as "Admission No",
MRN,

date

From 

qvd;

 

Thanks

 

 

 

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Yes, the

 Num("Admission No") + 100000 as "Admission",

should work.

I would even assume that 

"Admission No" + 100000 as "Admission"

should work. 

 

View solution in original post

2 Replies
Vegar
MVP
MVP

Yes, the

 Num("Admission No") + 100000 as "Admission",

should work.

I would even assume that 

"Admission No" + 100000 as "Admission"

should work. 

 

Volkman
Contributor
Contributor

This works by using the CONVERT function to convert the number from MONEY to a VARCHAR with a style of 1, which adds the commas and also a decimal point and two decimal places. As we don't really want the decimal places I've used the REPLACE function to strip them off.

 

mygiftcardsite balance