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

how to get Like operator functionlity in qlikview

hi All,

Can we load only those value to a list box where data like y_ ???

WE have like operator in sql can I have  similar functionality? 

if I want to have fields with 'y_' how to filter in listbox-general-field-expression

I don't want in edit script

Thank you

Regards,

Prajna

1 Solution

Accepted Solutions
kouroshkarimi
Creator III
Creator III

Ok sorry I didnt read the first post properly. You want something like if(WildMatch($Field,'Y_*')=1,$Field,null())

View solution in original post

14 Replies
Anonymous
Not applicable
Author

Prajna

You could try

     if ( left ( [YourField] , 2 ) = 'y_' , ..................

Best Regards,     Bill

luciancotea
Specialist
Specialist

=if( Index( YourField, 'y_' ), 'Yes', 'No' )

somenathroy
Creator III
Creator III

Use WildMatch(<FieldName>,'y_*') in expression.

Regards,

Som

Not applicable
Author

HI,

I Tried this..

if( Index( $Field, 'Y_' ), 'Yes', 'No' )  it didn't work

Regrads,

Prajna

Not applicable
Author


Hi,

I tried this.. em getting 0 and 1

What might be the mistake

WildMatch($Field,'Y_*')

Regards,

Prajna

Not applicable
Author

Hi All,

I want a filter criteria to load only those values that begins with 'Y_'

Regards,

Prajna

kouroshkarimi
Creator III
Creator III

theres no mistake, if wildmatch returns 1 it means it found the Y_* fields. So say if(WildMatch($Field,'Y_*')=1,'Yes','No')

Not applicable
Author

f.PNG.pngHi,

But em getting both yes and no

here is my fields


Not applicable
Author

You have any idea how we can rename $(Field)

Regards,

Prajna