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: 
mazacini
Creator III
Creator III

Can I combine Right function with Where Exists in load

I am loading a Table1 with script Right(Field1,4) as Field2.

Now I want to load Table2 with script Right(Field1,4) as Field2 but only where Field2 exists in Table1 load.

Any suggestions?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

Table1:

Load *, right(Field1,4) as Field2

from ...table1source...;

Table2:

Load *, right(Field1,4) as Field2

from ...table2source...

where exists(Field2, right(Field1,4));


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try:

Table1:

Load *, right(Field1,4) as Field2

from ...table1source...;

Table2:

Load *, right(Field1,4) as Field2

from ...table2source...

where exists(Field2, right(Field1,4));


talk is cheap, supply exceeds demand
mazacini
Creator III
Creator III
Author

Thanks Gysbert

That worked great!

Joe