Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ashmitp869
Creator II
Creator II

leading zero's not working .?

Hi ,

What is wrong in my script with the leading zero's

Qlikview script :

MRN Pool HERO ID]&' '& right('0000000000'+[Client Facility Medical Record Number],10) as [MRN Pool HERO Id MRN]

But the end result is not showing zero's 

ashmitp869_0-1651113293855.png

 

Please suggest ?

Labels (1)
2 Replies
ashmitp869
Creator II
Creator II
Author

I check the db , its varchar

ashmitp869_0-1651114835578.png

 

How to add 000 before in varchar in Qlikview script ?

marcus_sommer

Try it with:

right('0000000000' & [Client Facility Medical Record Number],10)

or maybe:

num([Client Facility Medical Record Number], '0000000000')

- Marcus