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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
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.

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

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

sunny_talwar
MVP
MVP

Although you can try something like this

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