Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Incremental load based on filename


I need to have an incremental (only add) of some log files in a QVD.

The file name is of the format filename_date_time;csv. And there is a new file added every hour.

For the incremental load of the QVD how can I compare the last file loaded in the QVD and the latest log files in the folder so as to load only the files that have not been loaded?

Is it better to maintain a list of log files in a separate table?

Load *, filename() as name
From f:\Qlikview\*.csv

Load *

From f:\Qlikview\*.csv

where ...?

Thank you in advance,


Tags (2)
2 Replies
Honored Contributor II

Re: Incremental load based on filename

You could call a cmd prompt to move *.csv into a subfolder. That way you can always use *.csv in the load.


     Filename()     AS     Name


FROM *.csv;

EXECUTE /c cmd Move *.csv \Loaded;

Hope this helps,


Not applicable

Re: Incremental load based on filename

Wow that works like magic! I was trying to do something more complicated.

Would you also be having an example of an incremental reload with insert / update?

Thank you again!

Community Browser