<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to aggregate data by hour in time series? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889668#M105177</link>
    <description>&lt;P&gt;I just wondered about:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1753619080073.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79022i01EC89987D638C38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1753619080073.png" alt="hogi_3-1753619080073.png" /&gt;&lt;/span&gt;&lt;BR /&gt;with date &amp;amp; time rounded to minutes, there is no issue with missing.&lt;BR /&gt;&lt;BR /&gt;the explanation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1753619157456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79023i53F47A56C2BA4994/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1753619157456.png" alt="hogi_4-1753619157456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...no&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Date Increment()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, another approach to round to hours:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1753619312821.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79024i8620A681A67C3AA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1753619312821.png" alt="hogi_5-1753619312821.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;: )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Jul 2025 12:28:42 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-07-27T12:28:42Z</dc:date>
    <item>
      <title>How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889508#M105159</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m working with a time series dataset that includes timestamps at the minute level (e.g., 2025-07-12 &lt;A href="https://calculadoradehoras.io/" target="_self"&gt;14:03:00&lt;/A&gt;). I’m trying to aggregate the data into hourly bins so I can visualize trends over the course of the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve tried using the Group function with Hour(DateTime), but I’m not sure I’m applying it correctly in a summary table or graph. Also wondering if there's a cleaner way to round timestamps to the nearest hour before aggregation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any tips or scripting examples for hourly grouping would be really helpful.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Jhonn Marie&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 20:01:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889508#M105159</guid>
      <dc:creator>jhonnmarie</dc:creator>
      <dc:date>2025-07-25T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889525#M105160</link>
      <description>&lt;P&gt;I would create new column which removes minutes and seconds from your date time column. You can create it with quick formulas JMP provides you with but it will require few of them. First you can create Date column&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1753474090228.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78952i40329E7A73EA50CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1753474090228.png" alt="jthi_1-1753474090228.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then create Hour column&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1753474117001.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78953i0674651E9F96275E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1753474117001.png" alt="jthi_2-1753474117001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And combine these&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1753474131014.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78954i885B1C0E87CC4B53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1753474131014.png" alt="jthi_3-1753474131014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next open the created column, change format and modify the formula by multiplying the hour by In Hours(1) (same as 60*60 which is seconds in hours, this is basically how JMP manages time). Final formula would look something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;In Hours(:"Hour[Column 1]"n) + :"Date[Column 1]"n&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1753474244890.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78955iE09F806519D81343/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1753474244890.png" alt="jthi_4-1753474244890.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can of course do this all in single column by picking the formulas from Hour (remember to convert these into hours) and Date columns and combining them. The final formula would look something like this (not the only option):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Column 1 - Time Of Day(:Column 1) + In Hours(Hour(:Column 1))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where :Column 1 is the date time column you have&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_5-1753474382984.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78956iC594B8B3623B998F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_5-1753474382984.png" alt="jthi_5-1753474382984.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You could also just deduct seconds and minutes (remember to convert these into seconds) from your date time and you should have similar result&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Column 1 - Second(:Column 1) - Minute(:Column 1)*60&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_6-1753474481671.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/78957iB890D082703F21C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_6-1753474481671.png" alt="jthi_6-1753474481671.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;One place to read more about date-time in JMP&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/date-time-functions.shtml" target="_blank" rel="noopener"&gt; Using JMP &amp;gt; Reference for JMP Functions in Formulas &amp;gt; Date Time Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 20:15:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889525#M105160</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-07-25T20:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889644#M105171</link>
      <description>&lt;P&gt;JM:&lt;BR /&gt;&lt;BR /&gt;I work a lot with sensor timeseries data from process data historians.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are your data evenly spaced, i.e. one minute average or snapshot, or have timestamps that could be from any time within the hour? Do you want to aggregate the data to an hourly average or just round the timestamps to the nearest hour?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In either case, the easiest way is to: rightclick on the timestamp column &amp;gt; New Formula Column &amp;gt; Transform &amp;gt; Round &amp;gt; Nearest 1 hour&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you've created the rounded timestamp, to create the hourly average: Tables &amp;gt; Summary &amp;gt; Group: Rounded Timestamp; add the data columns with the statistics you want &amp;lt;&lt;A title="How to create a summary table" href="https://www.jmp.com/support/help/en/18.0/#page/jmp/summarize-your-data.shtml#" target="_blank" rel="noopener"&gt;Table Summary&lt;/A&gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy to discuss this further.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 03:40:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889644#M105171</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2025-07-27T03:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889650#M105173</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1051"&gt;@markschahl&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;very comfortable!!&lt;/P&gt;
&lt;P&gt;nice : )&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 07:14:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889650#M105173</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-27T07:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889651#M105174</link>
      <description>&lt;P&gt;Ah, &lt;FONT face="courier new,courier"&gt;Date Increment()&lt;/FONT&gt; does the job in the background.&lt;BR /&gt;The same function does the binning in GraphBuilder - so helpful!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If you're wondering about axes which span all the way to the year 0:&lt;BR /&gt;Unfortunately, the &lt;FONT face="courier new,courier"&gt;Date Increment()&lt;/FONT&gt; function does not treat missing values as such; they are rounded to 0.&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6376193524112w478h490r65" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6376193524112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6376193524112w478h490r65');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6376193524112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1753600965537.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79011iF944764CD7E0B3FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1753600965537.png" alt="hogi_2-1753600965537.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI-MESSAGE title="some improvements + bugfixes for nested / binned time/date axes" uid="762949" url="https://community.jmp.com/t5/JMP-Wish-List/some-improvements-bugfixes-for-nested-binned-time-date-axes/m-p/762949#U762949" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;SPAN&gt;TS-00147884.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 12:04:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889651#M105174</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-27T12:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889659#M105175</link>
      <description>&lt;P&gt;As a workaround, one can exclude the wrong rows,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change the formula to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tmp = Date Increment( :"date-time"n, "Hour", 0 );
If( tmp == -60084288000,.,tmp); // "0" = -60084288000
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;... or use&amp;nbsp;&lt;CODE class=" language-jsl"&gt;-60084288000  &lt;/CODE&gt;as &lt;FONT face="courier new,courier"&gt;Missing Value Code&lt;/FONT&gt; via the column properties:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1753607653846.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79016i64171988DBEDA863/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1753607653846.png" alt="hogi_0-1753607653846.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 09:15:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889659#M105175</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-27T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data by hour in time series?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889668#M105177</link>
      <description>&lt;P&gt;I just wondered about:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1753619080073.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79022i01EC89987D638C38/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1753619080073.png" alt="hogi_3-1753619080073.png" /&gt;&lt;/span&gt;&lt;BR /&gt;with date &amp;amp; time rounded to minutes, there is no issue with missing.&lt;BR /&gt;&lt;BR /&gt;the explanation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1753619157456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79023i53F47A56C2BA4994/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1753619157456.png" alt="hogi_4-1753619157456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...no&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Date Increment()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, another approach to round to hours:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1753619312821.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/79024i8620A681A67C3AA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1753619312821.png" alt="hogi_5-1753619312821.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;: )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 12:28:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-aggregate-data-by-hour-in-time-series/m-p/889668#M105177</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-27T12:28:42Z</dc:date>
    </item>
  </channel>
</rss>

