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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

match - function

Hello together,

i have a table with ColA => apple, cycle and a table with ColB => cycle

is it possible with the wildmatch or another function, to show, that the value cycle in ColB is part of ColA?

match(ColB,ColA) returns 0. I want that the function returns a 1.

Thanks a lot!

Best regards,

Aylin

1 Solution

Accepted Solutions
Not applicable
Author

Thanks a lot for your helps.

I resolved it with the index function!          =If(Index(ColA, ColB) > 0, 'TRUE', 'FALSE')

View solution in original post

7 Replies
maxgro
MVP
MVP

try with

=wildmatch(ColA, '*' & ColB & '*')

but if if you have more values in ColA and ColB

it only works when you select 1 value in each columns

A:

LOAD * INLINE [

    ColA

    "apple, cycle"

    "cycle, fruit"

];

B:

LOAD * INLINE [

    ColB

    cycle

    square

];

Not applicable
Author

See

exists()

fieldIndex()

Fabrice

er_mohit
Master II
Master II

Try this in text box

if(len(trim(mid(ColA,Index(ColA,',')+1)))=len(ColB),1,0)

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

Sometimes the textobject expression varies from chart expression, script expression. Could you please describe about the scenario or what/ where the expression is to be applied?

Not applicable
Author

Thanks a lot for your helps.

I resolved it with the index function!          =If(Index(ColA, ColB) > 0, 'TRUE', 'FALSE')

CELAMBARASAN
Partner - Champion
Partner - Champion

FYI: Index will be case sensitive comparison. if thats what you want very well you can go with that

=If(Index(ColA, ColB), 'TRUE', 'FALSE') //this is enough

simondachstr
Specialist III
Specialist III

=Index(ColA, ColB) // this is enough (for conditional shows e.g.)