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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
tappij2012
Contributor II
Contributor II

How to show a match of two tabels?

Hi,

I'll have two different tabels where I want to find and show a match in one of them.

I'll only want to use an expression.

Example:

Tabel 1:

Header 1Header 2
1aaa
2cac
3bbb
4ddd
5ccc
6aba

Tabel 2:

Header 1Header 2Header 3
1fffno match
2cacmatch
3aaamatch
4abamatch
5gggno match
6cccmatch

Header 2 of tabel 1 looks into tabel 2 (Header 2) to find a match.

What is the expression for Header 3 to solve this?

Gr. Tappij

4 Replies
jolivares
Specialist
Specialist

The way to do that is making a map

tab1map:

mapping

load header1,

       header2

from tab1;

tab2:

load header1,

       header2,

       If(Header2 = Applymap('tab1map',header1),'Match','No Match') as Header3

from tab2;

Not applicable

Hi,

Is the solution in attached file what you need?

Regards

http://quickdevtips.blogspot.com/

tappij2012
Contributor II
Contributor II
Author

Mabye this is ok, but I don't want to use the script.

It must be in Expression format.

tappij2012
Contributor II
Contributor II
Author

Hi,

Thanks, but this is not what I mean.

I've put an attachment as example.

There you see two different tabels. In tabel 2 you see the match of column C with tabel 1 column D.

I'll still want to use an expression in tabel 2 column D.

Regards