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: 
salerik
Contributor II
Contributor II

Calculate Max Value Between Two Timestamps

Hello.

I have a column with timestamps and another column of values.  I am looking to determine the maximum Value between the last (max) Timestamp and 24 hours ago.  I am having trouble writing an expression for this.  Can you please help?  Thank  you.

 

1 Solution

Accepted Solutions
sunny_talwar

Although you can try something like this

Max({<TimeStampField = {">=$(=TimeStamp(Max(TimeStampField) - 1, 'TimeStampFieldFormatHere'))<=$(=TimeStamp(Max(TimeStampField), 'TimeStampFieldFormatHere'))"}>} Value)

View solution in original post

2 Replies
sunny_talwar

What have you tried so far? Can you share some sample data and the output expected from it?

sunny_talwar

Although you can try something like this

Max({<TimeStampField = {">=$(=TimeStamp(Max(TimeStampField) - 1, 'TimeStampFieldFormatHere'))<=$(=TimeStamp(Max(TimeStampField), 'TimeStampFieldFormatHere'))"}>} Value)