Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikuser222
Creator
Creator

Always load 6 digits?

Hi Everyone,

I have a question on how to load a filed with alwys 6 digits?

For example below Source filed has number like

Source Field

123456

12345

123

1234

 

But in I want to load them as 6 digits adding 0 in the front like below

SourceFiled:

Load

123456

012345

000123

001234

Please help me understand the way to do it

Thanks

Labels (1)
1 Solution

Accepted Solutions
TimvB
Creator II
Creator II

In the script use the following:

NUM(YourField,'000000') as LeadingZeroField

Hope it helps!

View solution in original post

1 Reply
TimvB
Creator II
Creator II

In the script use the following:

NUM(YourField,'000000') as LeadingZeroField

Hope it helps!