Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Como quitar rango de caracteres?

Tengo un problema, tengo los siguientes terminos de esta manera.

2B CARRO1

3B CARRO 1

6T CARRO 2

CARRO 3 8B

CARRO 4 9B

CARRO5 8C

Quiero quitar el rango de caracter que dice carro y su secuencia, para que quede asi.

2B

3B

6T

8B

9B

8C

Ayuda

2 Replies
Not applicable
Author

This isn't foolproof, since it only works if the string is in the first two positions or in the last two positions. Maybe a start though.

MayilVahanan

Hi

you can also try like this

Load *

if(len(SubField(DATA,' ',1)) =  2, SubField(DATA,' ',1),SubField(DATA,' ',-1)) as FieldName

from tablename;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.