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

Dynamically update

Hey Everyone,

I have a report which I have to update start of every period. Is there a way I can dynamically change it so it picks up the next period.

Please see the attached file.

 

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

 

for each vFile in filelist ('E:\Qlikview\QVD\*.qvd')
    // do nothing, just iterate through the files
next 
// now vFile will contain the name of the newest file LatestFile: LOAD * FROM [$(vFile)] (qvd);

 


talk is cheap, supply exceeds demand
dplr-rn
Partner - Master III
Partner - Master III

Whats the logic of storing the name of the qvd. Use it as part of your load. Something like below

 

let vQvdName='xyz'&Date(today(),'DD-MM-YYYY')&'.qvd';
xyz:
LOAD *
FROM
[QVDFOLDER\$(vQvdName)]
(qvd)