Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

If TimeStamp greater then 36 Hours

Hello qlikers 🙂 ,

LET vTimeStamp = TimeStamp(Now());

I get the TimeStamp from the last reload. But when vTimeStamp greater than 36 hours is he should do something. 

How can I write this in qlik sense?

IF(TimeStamp(Now()) > vTimeStamp + 36 Hours) 

// do something

else

// do something other stuff

 Thank you in advance! Looking forward to reading some answers. 🙂

Labels (1)
1 Solution

Accepted Solutions
ngioux
Partner - Contributor II
Partner - Contributor II

Hi,

 

You can write it like this:

IF TimeStamp(Now()) > (vTimeStamp + (36 / 24)) THEN

// do something

ELSE

// do something other stuff

ENDIF

 

Best Regards,

Nicolas

View solution in original post

2 Replies
ngioux
Partner - Contributor II
Partner - Contributor II

Hi,

 

You can write it like this:

IF TimeStamp(Now()) > (vTimeStamp + (36 / 24)) THEN

// do something

ELSE

// do something other stuff

ENDIF

 

Best Regards,

Nicolas

Kushal_Chawda

 

IF((interval(TimeStamp(Now()) - $(vTimeStamp),'hh')*24) >36 then

// do something

else

// do something other stuff