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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Check if time taken is more than hour

Hi All.

Please check the below expressions

=interval(Timestamp(reloadtime())-Timestamp(DateTimeLeadCreatedOn),'hh')

This gives the interval in hours.

If the above expression is greater than 1 it has to return success otherwise failure.

=if(interval(Timestamp(reloadtime())-Timestamp(DateTimeLeadCreatedOn),'hh')>1,'Success','Failure')

But the below expression is not returning anything.

Can someone help me with this issue.

Regards,

Keerthi KS

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

=if(reloadtime()-DateTimeLeadCreatedOn>1/24,'Success','Failure')

View solution in original post

8 Replies
raajaswin
Creator III
Creator III

Can you post sample data and app?

Anonymous
Not applicable
Author

may be this:

=if(num(interval(Timestamp(reloadtime())-Timestamp(DateTimeLeadCreatedOn),'hh'))>1,'Success','Failure')

Not applicable
Author

When its converting to num it gives some different value in decimals.

tamilarasu
Champion
Champion

Probably,

=If(Interval (Timestamp(reloadtime())-Timestamp(DateTimeLeadCreatedOn),'hh:mm')<'01:00','Success','Faliure')

tresesco
MVP
MVP

Try like:

=if(reloadtime()-DateTimeLeadCreatedOn>1/24,'Success','Failure')

Anonymous
Not applicable
Author

Nope, I am just making your Interval as a num while comparing with 1....

It would return you either Success or Failure

VishalWaghole
Specialist II
Specialist II

Hi Keerthi,

Make sure you provide specific timestamp format, Try this one

=if(interval(Timestamp(reloadtime(),'MM/DD/YYYY h:mm:ss TT')-Timestamp(DateTimeLeadCreatedOn,'MM/DD/YYYY h:mm:ss TT'),'hh')>1,'Success','Failure')

MK_QSL
MVP
MVP

IF(TimeStamp(ReloadTime()-DateTimeLeadCreatedOn)*24>1,'Success','Failure')