Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Assign Multiple values to variable

Dear QLikview Experts,

I have to load data from multiple files which have timestamp at the end of their names

Presently we are using

SET vActualFileLoc = "Actual_MAINFILE*.csv'";

Files are like

ACTUAL_MAINFILE_201101*.csv'";

ACTUAL_MAINFILE_201102*.csv'";

and so forth till current month.

I am loading it as

For

each vActualBW in filelist($(vActualFileLoc))

LOAD *FROM

$(vActualBW)

(
txt, utf8, embedded labels, delimiter is '|');

Next

I need to change this so that I start the loading from 201206 month. I tried and found that CONCAT function could be of help here. But when I tried, it was not working.

Pls guide here.

1 Solution

Accepted Solutions
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Try this one.

For each vActualBW in filelist($(vActualFileLoc))


if left(SubField($(vActualBW),'_',3),6)>=201106 then


LOAD *FROM
$(vActualBW)
(
txt, utf8, embedded labels, delimiter is '|');

ENDIF


Next

View solution in original post

2 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Try this one.

For each vActualBW in filelist($(vActualFileLoc))


if left(SubField($(vActualBW),'_',3),6)>=201106 then


LOAD *FROM
$(vActualBW)
(
txt, utf8, embedded labels, delimiter is '|');

ENDIF


Next

Not applicable
Author

Thanks Natrajan, it was of great help