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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ahidu1030
Contributor II
Contributor II

Identify String or text and eliminate the zeros at the beginning of string

Hello Guys,

I need to load "material number" from original file as:

00002532548452,

0000000698542,

A7B765430,

P PPXX,

78BL333

I want to have results shown as:

2532548452,

698542,

A7B765430,

P PPXX,

78BL333

Actually, to eliminate the possible zeros at the beginning. The zero appears if there is only figures.

How shall I script???

1 Reply
silvacarlos
Creator II
Creator II

Maybe this (I found this here How to remove the leading zero's in the alphanumeric field values)

mid([YourField],index([YourField],left(PurgeChar([YourField] , '0' ),1)))



I hope it helps!


CS