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: 
mahitham
Creator II
Creator II

Max(Timestamp) help

Hi Experts,

Can any one please help me on below requirement.

I have a Timestamp field like below format which is extracted from Data base.

Please help me to calculate Max(TIME) In below format which is useful to apply  incremental load on this field.

time.png

1 Solution

Accepted Solutions
d_prashanthredd
Creator III
Creator III

Hi Mahitha,

try this for max date upto 6 ms precission... max(timestamp(Date, 'YYYY/M/DD hh:mm:ss.ffffff'))

Regards,

Prashanth Reddy D.

View solution in original post

4 Replies
agigliotti
Partner - Champion
Partner - Champion

what you get with Max(TIME) in a text box ?

ChennaiahNallani
Creator III
Creator III

try like below

DBSCRIPT:

Load

AppName,

StreamName,

TIME,

DATE,

ENVIRONAMENT;

select

AppName,

StreamName,

TIME,

DATE,

ENVIRONAMENT FROM  "CONTOL_PROCESSING";

Temp:

load

Max(TIME) as Max_Time,

Min(TIME) as Min_Time

resident DBSCRIPT;


let vMaxDate = Num(peek('Max_Time',0,'Temp'))

d_prashanthredd
Creator III
Creator III

Hi Mahitha,

try this for max date upto 6 ms precission... max(timestamp(Date, 'YYYY/M/DD hh:mm:ss.ffffff'))

Regards,

Prashanth Reddy D.

Vamsi0529
Contributor II
Contributor II

Hi Team,

Need small help,

I getting data from bata base, and when i check the date field i am getting below format.

When i change the format the Seconds not showing it's all 00 00 00 000

Changing formatChanging format

 

I am getting seconds value nullI am getting seconds value null