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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Function LPad or RPad

Hello,

I have to use Lpad function beacause i must convert a number with two characters (ex. 9 to 09).

I did not found it? Can Anyone help me, please?

Francesco

Labels (1)
1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

if your field is myField and you need a string of 10 characters:

repeat('0', 10-len(myField)) & myField

Hope it helps

View solution in original post

4 Replies
abeyphilip
Creator II
Creator II

Hi Francesco,

Please try this:

=num(9,'00')

regards,

Abey

alexandros17
Partner - Champion III
Partner - Champion III

if your field is myField and you need a string of 10 characters:

repeat('0', 10-len(myField)) & myField

Hope it helps

Not applicable
Author

Thank you Alessandro.

It is a correct solution.

Francesco

alexandros17
Partner - Champion III
Partner - Champion III

Can you please mark the answer as correct?

Thank you