Hello, I am looking for "preceding load" methodology to force concatenation between two tables of different fields, and then calculate based on the concatenated table. I know how to do it in resident and drop table, and I want to try preceding load, imagining it would be faster and would use less memory. But with the script below, it only populates [PL MARKER] for the first portion. How to do preceding load correctly?? Thanks.
Regarding your question, the Preceding Load will only work for the related table (Table 1). Qlikview loads data in the script's sequence order, it will process data in the following sequence in your case:
Load Table 1
Preceding load of Table 1
Load Table 2
Concatenate TABLE 1 with TABLE 2.
Depending on your requirements, if you just have to add only one hard coded flag ('PL' as[PL MARKER];) then I would suggest Hector Muñoz approach is perfect, but there would be a duplication of code if you have more fields and in case if you have to derive calculated fields based on the concatenated table then you must use the approach you have mentioned "RESIDENT LOAD and DROP TABLE".