Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Scripting Issue


Hi,

I have a folder in which there are various qvd files.

On my dashboard, i wish to show the last refresh time of various qvds.

Please help.....

1 Solution

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

see attached

Regards

View solution in original post

5 Replies
aveeeeeee7en
Specialist III
Specialist III

See this:

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

Hope this helps.

Regards

Av7eN

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Payroll:

LOAD *

     QvdCreateTime(FileDir() & '\'&FileName()) as LastRefreshTime

FROM

FileName.qvd;

Regards,

Jagan.

Not applicable
Author

Hi Asma,

you can use the below sript.

for each v_qvd in 'c:\QVD\*.qvd (replace with qvd path)

let vTime=QvdCreateTime($(v_qvd);

QVD_Time:

Load * inline[time, QVD

$(vTime),$(v_qvd)

];

next

Table QVD_Time contains the list of QVD with the refresh time.

This is to get the latest refreshed qvd if you need

LatestQVD:

Load Max(time) as MaxTime,QVD

resident QVD_Time;

letv_latestQVD=peek(MaxTime,'LatestQVD');

martinpohl
Partner - Master
Partner - Master

see attached

Regards

Not applicable
Author

Thanks everyone for such a quick response!!!!!