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: 
prabhas277
Creator
Creator

loading qvds

Hi Experts,

I have monthly qvds like jan,feb,... Dec now my requirement is if i load 7th month qvd then at the same i want load previous month last day qvd i.e 6th month 30 th or 31 th qvd. how can get it?

4 Replies
ecolomer
Master II
Master II

Can you explain more details, please?

prabhas277
Creator
Creator
Author

Hi,

I have monthly Qvds like jan,fed,march,apr,....dec. The monthly qvd having all day qvds like 1st,2nd,3rd...31st day qvds. now my requirement is i want  load 5 th month Qvd and same time i want load previous month last day qvd i.e 4th month 31 st day qvd. how can achive it?

ecolomer
Master II
Master II

but that means having a qvd for each day or one for each month with a record for each day?

Anonymous
Not applicable

hi prabhas,

Maybe try:

Let vMinMonth = AddMonths(MonthEnd(Today()),-1);

For Each vFile in FileList('...\...\Data*.qvd')

  Let vBaseFilename = Substring(vFile, '\', -1);

  Let vDate = Date#(Mid(vBaseFilename, 6, 6));

  If vDate >= vMinMonth Then

       Data:

       LOAD *

       FROM [$(vFile)] (qvd);

  End If

Next

Regards

Neetha