Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Deleting trailing Zeroes

Hi all,

I am importing a data from CSV file and in 1 field it contains additional Zeroes.

How I can remove the last 2 zeroes from this field.

Example:

 

FieldOutput required
1M001M
1N001N
2B002B
2G002G
2N002N
2Q002Q
300030
3Y003Y
4H004H
4X004X
5M005M
5U005U
5X005X
640064
6A006A
6J006J
6U006U
7F007F
7T007T
8A008A
8J008J
8N008N
8W008W
9C009C
9F009F

Regards

Abhijit

1 Solution

Accepted Solutions
sunny_talwar

May be just this

Left(Field, 2) as ReqOutput

or this

Left(Field, Len(Field)-2) as ReqOutput

View solution in original post

4 Replies
sunny_talwar

May be just this

Left(Field, 2) as ReqOutput

or this

Left(Field, Len(Field)-2) as ReqOutput

shiveshsingh
Master
Master

Try

left(Field,2) as Field while loading

sasiparupudi1
Master III
Master III

May be Like this?

Load

Field,

If(IsNum(Field),Field/100, SubField(Field,'00',1)) as NewField

Resident YourTable;

Anonymous
Not applicable
Author

After posting I followed the same approach.

Thanks it worked