Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
suhascool1
Contributor III
Contributor III

how to remove first five zero from column field value

 

i have table which is look like this so how to remove 0 digti from the column field value.

code manager
0000033433 Alok
0000033564 Master
0000033555 Snehal
0000033545 Rahul

 

final result look like this

code manager
33433 Alok
33564 Master
33555 Snehal
33545 Rahul
Labels (1)
2 Solutions

Accepted Solutions
Bhaskarkumar
Partner - Contributor III
Partner - Contributor III

LOAD code,
num(num#(code)) as Code ,
manager
FROM
[https://community.qlik.com/t5/App-Development/how-to-remove-first-five-zero-from-column-field-value/...]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @1);

View solution in original post

henrikalmen
Specialist
Specialist

I would not recommend using Right() or TextBetween(), especially not if
not all values have the same number of leading zeros. The num#()
function should be used. If the resulting value should be text, one can
wrap it like this: text(num#())

View solution in original post

5 Replies
Bhaskarkumar
Partner - Contributor III
Partner - Contributor III

LOAD code,
num(num#(code)) as Code ,
manager
FROM
[https://community.qlik.com/t5/App-Development/how-to-remove-first-five-zero-from-column-field-value/...]
(html, utf8, UserAgent is 'Mozilla/5.0', embedded labels, table is @1);

henrikalmen
Specialist
Specialist

Try this: num#(code)

Frédéricdh
Creator II
Creator II

I find you can use a stringfunction: like

Right see:

Right - Skript- und Diagrammfunktion | QlikView Hilfe

 

Or Textbetween:

TextBetween - Skript- und Diagrammfunktion | QlikView Hilfe

 

henrikalmen
Specialist
Specialist

I would not recommend using Right() or TextBetween(), especially not if
not all values have the same number of leading zeros. The num#()
function should be used. If the resulting value should be text, one can
wrap it like this: text(num#())
suhascool1
Contributor III
Contributor III
Author

thanks