Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

eoinboylan
New Contributor II

Load 'filename_*.qvd' from a folder when the latest file has a new field.

Hi,

I'm trying to load from a folder where qvd's are generated daily and then concatenated into one larger, consolidated qvd to store all the information for display.

Today_Data:

Load

     "Field 1",

     "Field 2",

     "New Field"

store Today_Data into [lib://Folder/Data_$(today).qvd]

(qvd);

All_Data:

Load

     "Field 1",

     "Field 2",

     "New Field"

From [lib://Folder/Data_*.qvd]

(qvd);

store All_Data into [lib://Consolidated Data Folder/All_Data.qvd]

(qvd);

This worked well until the customer requested a new field be added into the daily generated qvds from yesterday and now, because the legacy tables don't have the new field, the script fails when trying to store the All_Data table to the consolidated folder.

As the new field will be included from now on, is there a way of reading all these files without needing them to all have the new field?  Or even retroactively adding the new field to the old tables, even if it's just blank?

Thanks in advance for your help!