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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
robin_heijt
Creator
Creator

Conditionally remove first character from string

Hi,

 

I have a bunch of Unique ID's, but for some reason my source system adds a 0 to the beginning of the string if the string is shorter than 7 numbers.

How can I write a condition for; If first character is 0, then delete first character?

Thanks

2 Replies
sunny_talwar
MVP
MVP

May be like this

If(Left(StringField, 1) = 0, Mid(StringField, 2), StringField)
pradosh_thakur
Master II
Master II

Mid(Your_field,2)

 

if(left(your_field,1)=0,mid(your_field,2),your_field)

edited.

Learning never stops.