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

How to load latest QVD in application

Hi,

In a one folder i have a premium Qvd's Year wise like Premium_2000, Premium_2001, Premium_2013, Premium_2017...

Year starts from April To March. So current year is 2017.


In a application i want to load latest QVD on the basis of Year automatically..i.e. without mentioning year at the end. Application will load QVD on the basis of current year...


Please help to resolve the issue.


Thanks in Advance.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You should be able to follow the same like shown in

Load latest Excel file to Qlikview

View solution in original post

4 Replies
swuehl
MVP
MVP

You should be able to follow the same like shown in

Load latest Excel file to Qlikview

pra_kale
Creator III
Creator III
Author

Thanks Stefan for your help..

I have made below given changes but it is giving error...I think i am missing something. Can you please help.

LET vFilePath = 'E:\Qlikview\A'; 

 

FOR EACH file in FileList('$(vFilePath)\*.qvd');  

LET vFileYear =  Left(Right(file,8),4);                   

LET vMaxYear = Rangemax(vFileYear,vMaxYear);   

 

Data: 

LOAD * 

FROM 

[$(vFilePath )\Premium_$(vMaxYear).qvd](qvd);

swuehl
MVP
MVP

You are missing a NEXT statement, right?

If that's not the solution, what does the error message say?

pra_kale
Creator III
Creator III
Author

You are right...i have missed Next statement..It is working now..

Great Thanks..