Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dataexplorermytyles
Contributor
Contributor

Unable to Load all files in Qlik Sense with *

Hi,

I have two files in my google drive with same structure.

maheshagrawal146_0-1687554758807.png

 

I am trying to load both of these files at once in Qlik Sense, but getting file not found error.

If I load them separately, it works fine. Tried all the tricks that I could, but '*' is not working like it does in Qlik Sense.

Any tips?

maheshagrawal146_1-1687554891431.png

maheshagrawal146_2-1687554907120.png

 

Thanks,

M

#QlikSense

 

Labels (3)
1 Reply
Zapparoli
Creator II
Creator II

Hello,

You can use a for loop to load all the files in the folder, like so:

  For each vFileName in Filelist ('lib://YourPath/*.xlsx')
      Load *,
         '$(vFileName)' as FileName
      From [$(vFileName)];
   Next vFileName

Check this great documentation made by Hic that explains this Function:

https://community.qlik.com/t5/Design/Loops-in-the-Script/ba-p/1473543

-Zapparoli

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics