Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Qlik Community!
I am trying to do incremental load. The goal was to load all excel files in folder on a monthly basis (loaded by name and wildcard), check unique reference if it exists (let's call it CVD reference which is combination of string and number) and load which CVDs are not present in old table. I cannot use different field - this is the ID I need.
I've managed to make it work, but I am receiving Synthetic key, although all fields in tables are same - I've made sure of that and confirmed that by exporting as CSV files. "oldTable" as an Initial load is already saved as QVD file.
Here is the code I am using:
temp_file:
LOAD
*
FROM [lib://NAS_LOCATION/*filename_monthly.xlsx]
(ooxml, embedded labels, table is [SheetName]);
store temp_file into [lib://NAS_LOCATION/temp.qvd](qvd);
Drop table temp_file;
oldTable: //old QVD file
LOAD *
FROM [lib://NAS_LOCATION/oldTable.qvd]
(qvd);
NewTable: //new QVD file
NoConcatenate
LOAD
*
FROM [lib://NAS_LOCATION//temp.qvd](qvd)
WHERE not Exists("CVD reference");
STORE NewTable into [lib://NAS_LOCATION/oldTable.qvd](qvd);
Few questions are popping up:
Unfortunately I cannot share the files directly, since they contain sensitive financial informations. But in case of need, I can simulate some of the data for you.
Thank you in advance!
Hi
See this post I asked same kind of question about incremental load and I received this solution.
It s running every day for my apps without issues
hoe it helps
Regards
Hi
See this post I asked same kind of question about incremental load and I received this solution.
It s running every day for my apps without issues
hoe it helps
Regards