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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
souadouert
Specialist
Specialist

Replace sting

i want to replace zero with '' in the IDs, but just zero at the beginning of the ID in load script



000574 ---> 574

0574-->547

02540 -->2540

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

try this,

load id+0 as new;

load * inline [

id

000574

0574

02540];

View solution in original post

6 Replies
Anil_Babu_Samineni
MVP
MVP

Why second row only should change? Because, Of only one 0 is there?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

try this,

load id+0 as new;

load * inline [

id

000574

0574

02540];

sunny_talwar
MVP
MVP

May be this

Replace(LTrim(Replace(String, '0', ' ')), ' ', '0') as String

souadouert
Specialist
Specialist
Author

i want delete just the zero at the beginning 

souadouert
Specialist
Specialist
Author

thank you

Anil_Babu_Samineni
MVP
MVP

Multiply with 1 to field

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful