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

Capture and Store Data Reload Time History

Hi All,

I am using the following variables to capture the last data reload date and time in the script,

Let vReloadDate = Date(Today(), 'DD/MM/YYYY');
Let vReloadTime = ReloadTime();

The above variables are working and return the latest figures, however, I want to record the history of data reload take place for a given app,  please advise on how I could store the history of data reload date and time in the Qlik Sense front UI.

Please refer to the table below for the expected output.

vReloadDatevReloadTime
11/11/20028.00 pm
12/11/20209.30 am
12/11/202011.00 am
12/11/202011.15 am
12/11/202012.00 pm
Labels (5)
3 Replies
tresesco
MVP
MVP

@KKumar92 

You can store this information in a qvd and keep the record (here the single column information of reload time) adding to it and then load it at a later point of time.

KKumar92
Contributor III
Contributor III
Author

@tresesco 

I have tried the above option, but it only displays the last reload time, where as I want to record the history of reload time for a given application.

tresesco
MVP
MVP

@KKumar92 Try like:

 

Let vReloadTime = ReloadTime();

t1:
Load
	'$(vReloadTime)' as ReloadHistory
AutoGenerate 1;

If Not IsNull(QvdCreateTime('lib://qs/reloadHistory.qvd')) then
	Load ReloadHistory from [lib://qs/reloadHistory.qvd](qvd);
End If    

STORE t1 into [lib://qs/reloadHistory.qvd] (qvd);