Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I am beginning my Qlik journey and I would like to create a table with Measures and timestamps. Ideally a new line would be added for each data reload.
Timestamp (data reload) | Measure1 | Measure2 | Measure3 |
08/13/24 | 1 | 2 | 3 |
08/16/24 | 5 | 4 | 1 |
... |
... | ... | ... |
FYI, Measures are just a COUNT functions with different IF conditions. I already created them in the Master items part but I can move/delete them if its not appropriate.
Thanks a lot for your help
Hi Epocin31,
there ist a function called ReloadTime( )
This function returns a timestamp for when the last data load finished. It can be used in both the data load script and in a chart expression.
If you want to save the reload time from past reloads you have to store it anywhere.
In script I would use the function Now(1) (https://help.qlik.com/de-DE/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunc...)
A script could look like:
ReloadTimes:
load
1 as [Reload ID],
now(1) as [Reload Time]
Autogenerate 1;
STORE ReloadTimes INTO [lib://DataFiles/ReloadTimes.qvd](qvd);
Hi Epocin31,
there ist a function called ReloadTime( )
This function returns a timestamp for when the last data load finished. It can be used in both the data load script and in a chart expression.
If you want to save the reload time from past reloads you have to store it anywhere.
In script I would use the function Now(1) (https://help.qlik.com/de-DE/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFunc...)
A script could look like:
ReloadTimes:
load
1 as [Reload ID],
now(1) as [Reload Time]
Autogenerate 1;
STORE ReloadTimes INTO [lib://DataFiles/ReloadTimes.qvd](qvd);
Hello Mark,
Thanks a lot it is working well
If I want to add my columns 'Measure1', 'Measure2', Measure3' in this file I just have to calculate them and add the fields in both parts (1st time and recurrent) of the scripts, correct?
Correct !:)