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: 
Not applicable

grouping Timestamps

I would like to group my timestamps into per 15 min interval.

if(Minute(datetime)<15, Date#(date(datetime, 'yyyy-MM-dd hh:15'), 'yyyy-MM-dd hh:15'),

  (if(Minute(datetime)<30, Date#(date(datetime, 'yyyy-MM-dd hh:30'), 'yyyy-MM-dd hh:30'),

      (if(Minute(datetime)<45, Date#(date(datetime, 'yyyy-MM-dd hh:45'), 'yyyy-MM-dd hh:45'),

           (if(Minute(datetime)>00, Date#(date(datetime, 'yyyy-MM-dd hh:00'), 'yyyy-MM-dd hh:00')

))))) as datetime2

I tried to put into my loadscript.  It does not seem to work.  The final output i see is skipped by hours.

Pls help.

thanks!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

timestamp(ceil(datetime,1/96),'YYYY-MM-DD hh:mm') as datetime2


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

timestamp(ceil(datetime,1/96),'YYYY-MM-DD hh:mm') as datetime2


talk is cheap, supply exceeds demand
Not applicable
Author

Got it. But any reasons why the formula does not give the result?