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: 
gokulnath2592
Contributor III
Contributor III

String comparison

Hi all,

I want to compare string between two table and display result in a straight table.

for example table 1 has  

Colors

Red

Blue

Green

Table 2 has same field as color

Red

Blue

Green

yellow

Here table 2 has extra data as yellow .

In a straight table i want to display yellow only.

please provide solution for this.

Thanks,

Gokul

2 Replies
MK_QSL
MVP
MVP

T1:

Load *, 'No' as Flag From TableName1;

T2:

Load *, 'SameColor' as Flag From TableName2 Where Exist (ColorFIeld);

Load *, 'DifferentColor' as Flag From TableName2 Where Not Exist (ColorFIeld);

Now create a List Box with below exrepsson

If(Flag = 'DifferentColor', ColorField)

Not applicable

Hi,

Load Colors from Table 1 to Table 2 with Color as Key.

A:

Mapping Load

Colors as Color,

Colors

resident Table 1;


Table2:

Load *,

Applymap('A', Color, 'NA')  as ColorMap

from Table2:



> In Straight Table dimension,


if(ColorMap='NA',color)



Regards,

Joshmi