Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Index

Hi!.

I need extract a character in a field. All the fields that contain ".qvw" extract previous character.

Example:

Log

I need

car_bt_avaya_split_6.qvw.log6
car_bt_avaya_split_6.qvw.log6
car_lk_tie_dia_7.qvw.log7
sistema.log-
sistema.log-
car_gir_1_1.qvw.log1
sistema.log-
car_bt_evento_4.qvw.log4
car_bt_evento_4.qvw.log4

I trying with Index funtion but i did not succeed.

Can they help me?

Thank!!!

Ivan.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try a combination of index and mid functions:

LOAD Log,

     [I need],

    mid(Log,index(Log,'.qvw')-1,1) as Wanted

FROM

[http://community.qlik.com/thread/49231?tstart=0]

(html, codepage is 1252, embedded labels, table is @1);

View solution in original post

3 Replies
swuehl
MVP
MVP

Try a combination of index and mid functions:

LOAD Log,

     [I need],

    mid(Log,index(Log,'.qvw')-1,1) as Wanted

FROM

[http://community.qlik.com/thread/49231?tstart=0]

(html, codepage is 1252, embedded labels, table is @1);

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     =Mid(Log,Index(Log,'.qvw')-1,1)

Hope it helps

Celambarasan

Not applicable
Author

Thank Swuehl!!  Thank Celambarasan!!.