Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show last update moment in a text box

Hi,

I wonder if there is a way to show in a text box (for example) the moment the the script was lauched for the last time so the data updated.

Any idea please?

Thanks

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Use this in text box...

='Last Updated '&Date(ReloadTime())&CHR(10)

&Hour(NOW()-ReloadTime())&' Hour(s),'&CHR(10)

&Minute(NOW()-ReloadTime())& ' Minute(s) and'&CHR(10)

&Second(NOW()-ReloadTime())& ' Second(s) ago' & CHR(10)&

'By '&Capitalize(Replace(SUBFIELD(OSUser(),'\',2),'.',' '))

View solution in original post

10 Replies
ashwanin
Specialist
Specialist

use

ReloadTime()  function

alexandros17
Partner - Champion III
Partner - Champion III

Use ReloadTime() function

manojkulkarni
Partner - Specialist II
Partner - Specialist II

use qlikview function ReloadTime()

vipin_mishra479
Creator II
Creator II

hi,

use reload time() function

MK_QSL
MVP
MVP

Use this in text box...

='Last Updated '&Date(ReloadTime())&CHR(10)

&Hour(NOW()-ReloadTime())&' Hour(s),'&CHR(10)

&Minute(NOW()-ReloadTime())& ' Minute(s) and'&CHR(10)

&Second(NOW()-ReloadTime())& ' Second(s) ago' & CHR(10)&

'By '&Capitalize(Replace(SUBFIELD(OSUser(),'\',2),'.',' '))

Not applicable
Author

Now(0) is also a possibility

Fabrice

amit_saini
Master III
Master III

Hi Luis,

Try this:

='[ Updated at

' & timestamp(reloadtime(), 'hh:mm on

MMM DD, YYYY') &' ]'

Not applicable
Author

Is there a way to get AM or PM on the timestamp?

amit_saini
Master III
Master III

Check this:

Suppose , 'T' in your timestamp format will be translated to either 'P' or 'A' as part of 'TT' resp. 'PM','AM'.

I think you can create your own format while keeping the numeric representation using dual() function:

[assuming a TimeStamp TS with a valid numeric representation]:

LOAD

     TS,

     dual( Date(TS,'YYYY-MM-DD') &'T' & time(TS,'hh:mm:ss'), num(TS) ) as MyTimeStamp,

Thanks,

AS