Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sourabhkuchya
Contributor
Contributor

Dynamic load of excel from folder

Hi All,

I am facing an issue while loading daily updated excel from the folder.

I need to avoid Supplier_Items file and pick only Items file from the folder.

Excel Files Name

Analytics_20180612_080003Z_M4O7PX6RZ1KCVEXGZO1U_Items
Analytics_20180612_080003Z_M4O7PX6RZ1KCVEXGZO1U_Supplier_Items
Analytics_20190722_080004Z_4M6P7FO9HJ2UDWFYG73D_Items
Analytics_20190722_080004Z_4M6P7FO9HJ2UDWFYG73D_Supplier_Items

 

Below is the code I am using to get all the file for Items with a different date and avoid supplier_items file.

TempTable:

 LOAD * 

From Analytics_*_Items;

Output Required:

Analytics_20180612_080003Z_M4O7PX6RZ1KCVEXGZO1U_Items

Analytics_20190722_080004Z_4M6P7FO9HJ2UDWFYG73D_Items

Output Coming:

Analytics_20180612_080003Z_M4O7PX6RZ1KCVEXGZO1U_Items
Analytics_20180612_080003Z_M4O7PX6RZ1KCVEXGZO1U_Supplier_Items
Analytics_20190722_080004Z_4M6P7FO9HJ2UDWFYG73D_Items
Analytics_20190722_080004Z_4M6P7FO9HJ2UDWFYG73D_Supplier_Items

 

Labels (4)
4 Replies
m_woolf
Master II
Master II

If the length of the file names will always be the smae, maybe something like:

From Analytics_?????????????????????????????????????_Items;

Sue_Macaluso
Community Manager
Community Manager

@sourabhkuchya  Are you using Qlik View or Sense?  I would like to move this to the correct product forum.  This one is typically for general discussion around the community platform. 

Sue Macaluso
sourabhkuchya
Contributor
Contributor
Author

@Sue_Macaluso Yes I am using Qlikview.
Brett_Bleess
Former Employee
Former Employee

Sourabh, I believe Mike's recommendation is the easiest, but have a look at the following Design Blog post as well, bit more complicated, but may open up other options for you...  If you did use Mike's solution, be sure to give him credit by clicking the Accept as Solution button on his post.

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

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.