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

Load data from different folder

Hi

How i can load particular  two text file form different folder.

please treat as urgent.

Thanks in advance

Regards

Ashish

18 Replies
Not applicable
Author

I don't want to do manually for every month.

Anonymous
Not applicable
Author

Ashish

Yup I know, have you tested it ?

Or maybe I did not understand what you are trying to do.

  

Best Regards,    Bill

Not applicable
Author

i want to load txt file from different different folder dynamically.

Not applicable
Author

please help me urgent basic.

Regards

Ashish

Not applicable
Author

Hi,

Please help me it is urgent.

Regards

Ashish

Not applicable
Author

Urgent please help some one.

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This is a framework for dynamically loading files with common structure from a set of directories:

Set vBase = \\QvData\Monthly;

Foreach vDir in DirList('$(vBase)\*')

  Foreach vFile in FileList(vDir)

  Let vBase = SubField(vFile, '\', -1)

  Let vDate = Date(Date#(SubField(vBase, '.', 1), 'YYYYMM'));

  MonthlyData:

  LOAD ...

  ...

  '$(vDate)' As FileDate,

  FileName() As FileSource

  From [$(vDir)]

  ...;

  Next

Next

This assumes that the files have the same structure and are named YYYYMM.ddd where Y = year, M = month and ddd = any extension

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

http://community.qlik.com/thread/99754

Did you see this thread ?

Some code could be interesting.

Fabrice

Not applicable
Author

Hi,

Please refer to the link: http://community.qlik.com/thread/62449

Syntax error.png

Hope this helps!

Thanks,

Sai