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: 
Not applicable

Read all documents in a folder

Hi there,

Is it possible to place lots of Excel documents in a directory (all of the same structure) and have Qlikview read them all, without needing a load script for each?

Thanks

2 Replies
hic
Former Employee
Former Employee

Use a For each loop. See Loops in the Script

HIC

tamilarasu
Champion
Champion

Hi,

Try,

For each vFile in FileList('$(vPath)\*.xl*')

     let vFileFormat = if(right(vFile, 1) = 'x', 'ooxml, embedded labels, table is Sheet1', 'biff, embedded labels, table is [Sheet1$]');

     TableName:

     load

          '$(vFile)' as SourceFile,

          *

     from [$(vFile)]

     ($(vFileFormat));

next

Check the below link

How to load multiple xls files in script