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: 
Rajesh
Creator II
Creator II

Preceding Load before Join statement

Hi All,

I want to understand  that can we use preceding load before Join statement.

i have 2 tables A and B after applying join two tables can i use Preceding load in table A.

can any one suggest

Thanks

Rajesh

1 Solution

Accepted Solutions
rubenmarin

Hi rajesh, the preceding load in table A can be done  before joining them. If you need fields from both tables to create a calculated field you can do a resident load of the joined table:

Rename Table JoinedTableName to JoinedTableNameAux;

JoinedTableName:

LOAD *, // all fields

     NewFields

Resident JoinedTableNameAux;


DROP Table JoinedTableNameAux;

View solution in original post

4 Replies
rubenmarin

Hi rajesh, the preceding load in table A can be done  before joining them. If you need fields from both tables to create a calculated field you can do a resident load of the joined table:

Rename Table JoinedTableName to JoinedTableNameAux;

JoinedTableName:

LOAD *, // all fields

     NewFields

Resident JoinedTableNameAux;


DROP Table JoinedTableNameAux;

Rajesh
Creator II
Creator II
Author

Thank you Ruben for made me understand.

Anil_Babu_Samineni

If you found understand / helpful close this thread

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
carlcimino
Luminary
Luminary

My question is why should you have to do it?  Since a preceding load runs from bottom to top why wouldn't the script recognize the join and allow the use of the result of that join?  Seems like a waste to have to reload an entire resident table.  Is there an explanation anywhere?