Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Grouping data into time intervals of 15 minutes
Go
New
Search
Notify
Tools
Reply
  
[SOLVED]Grouping data into time intervals of 15 minutes
 Login/Join
 
Platinum Member
posted
Hello Gurus,
I am dealing with a table with metrics with some timestamps. We need to group the data every 15 or so minutes. Any ideas?
Thanks in advance!

-PVuppala

This message has been edited. Last edited by: vaayu,


-********************
Sandbox: 8205
Dev: 8201M
Prod:8009
-********************
 
Posts: 216 | Location: Houston,TX | Registered: June 11, 2004Reply With QuoteReport This Post
Virtuoso
posted Hide Post
 
Posts: 1477 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Thank you BabakNYC, this looks like 8203 feature, unfortunately we're on 8201M. I'm tryinig using defines now.
  
DEFINE FILE MYFILE
START_INTERVAL/I4 = IF START_MINUTE LE 15 THEN 15 ELSE IF START_MINUTE FROM 16 TO 30 THEN 30 ELSE IF START_MINUTE FROM 31 TO 45 THEN 45 ELSE 60;
END


The problem with this approach is I need to make sure to fill the empty buckets i.e., for the rows that don't have a record I need to count as zeros. Hope it makes sense.


-********************
Sandbox: 8205
Dev: 8201M
Prod:8009
-********************
 
Posts: 216 | Location: Houston,TX | Registered: June 11, 2004Reply With QuoteReport This Post
Expert
posted Hide Post
Maybe this can work for you?
START_INTERVAL/I4 = 
     IF {FIELD IN RECORD} EQ MISSING THEN 0
ELSE IF START_MINUTE LE 15 THEN 15 
ELSE IF START_MINUTE FROM 16 TO 30 THEN 30 
ELSE IF START_MINUTE FROM 31 TO 45 THEN 45 
ELSE 60;
 
Posts: 2880 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Thanks for the ideas !! You guys rock! Smiler


-********************
Sandbox: 8205
Dev: 8201M
Prod:8009
-********************
 
Posts: 216 | Location: Houston,TX | Registered: June 11, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]Grouping data into time intervals of 15 minutes

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.