Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
gidon500
Creator II
Creator II

Set text string to fixed Length

hi guy

I need to adjust text string to fixed length  10 positions

input

Field

X100XC

X102X

Y200PRO

output :

FixedField

0000X100XC

00000X102X

000Y200PRO

any easy way to do it  ?

thanks

gidon

1 Solution

Accepted Solutions
maxgro
MVP
MVP

load

     Field,

     Repeat('0', 10-len(Field)) & Field as NewField

inline [

Field

X100XC

X102X

Y200PRO

];

View solution in original post

2 Replies
maxgro
MVP
MVP

load

     Field,

     Repeat('0', 10-len(Field)) & Field as NewField

inline [

Field

X100XC

X102X

Y200PRO

];

gidon500
Creator II
Creator II
Author

Hi maxgro

thanks you , it is great

happy new year

gidon