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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
zturaiki
Contributor III
Contributor III

Format number to two digit

How to change the format for the field data format

From 1.2.1.45. To 01.02.01.45

I want to show the two digit ,,,,

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If your string (1.2.1.45 is not a number) has always these four parts delimited by a dot, you could try like

=num(subfield('1.2.1.45','.',1),'00') & '.' &

num(subfield('1.2.1.45','.',2),'00') & '.' &

num(subfield('1.2.1.45','.',3),'00') & '.' &

num(subfield('1.2.1.45','.',4),'00')

View solution in original post

1 Reply
swuehl
MVP
MVP

If your string (1.2.1.45 is not a number) has always these four parts delimited by a dot, you could try like

=num(subfield('1.2.1.45','.',1),'00') & '.' &

num(subfield('1.2.1.45','.',2),'00') & '.' &

num(subfield('1.2.1.45','.',3),'00') & '.' &

num(subfield('1.2.1.45','.',4),'00')