<?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 Elapsed Time Calculation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586802#M79238</link>
    <description>&lt;P&gt;so i have different "runs" in one dataset, while i could break them out, i'd like to leave them as one dataset the goal is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Two relevant columns for formula&lt;UL&gt;&lt;LI&gt;Run Number (Numeric Ordinal)&lt;/LI&gt;&lt;LI&gt;Elapsed Time (Numeric Cont)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Goal: do a count with a 20ms offset and reset to zero each time the Run Number changes&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Since this time series is in set intervals of 20ms, i'm safe to do a count, but the count isn't going to go in intervals of 20ms&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 08 Jun 2023 16:44:28 GMT</pubDate>
    <dc:creator>haleyhoewt</dc:creator>
    <dc:date>2023-06-08T16:44:28Z</dc:date>
    <item>
      <title>Elapsed Time Calculation</title>
      <link>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586802#M79238</link>
      <description>&lt;P&gt;so i have different "runs" in one dataset, while i could break them out, i'd like to leave them as one dataset the goal is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Two relevant columns for formula&lt;UL&gt;&lt;LI&gt;Run Number (Numeric Ordinal)&lt;/LI&gt;&lt;LI&gt;Elapsed Time (Numeric Cont)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Goal: do a count with a 20ms offset and reset to zero each time the Run Number changes&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Since this time series is in set intervals of 20ms, i'm safe to do a count, but the count isn't going to go in intervals of 20ms&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:44:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586802#M79238</guid>
      <dc:creator>haleyhoewt</dc:creator>
      <dc:date>2023-06-08T16:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Elapsed Time Calculation</title>
      <link>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586861#M79242</link>
      <description>&lt;P&gt;I'm not sure if I understand correctly how your data looks like, but &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/statistical-functions-2.shtml?os=win&amp;amp;source=application#ww6133039" target="_blank" rel="noopener"&gt;Col Cumulative Sum&lt;/A&gt; should work. Take the sum of either 1 or &lt;SPAN class="lia-emoticons-autosuggestions"&gt;&lt;SPAN class="lia-emoticons-search-term"&gt;:"Elapsed Time"n&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum(1, :"Run Number"n)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 07:37:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586861#M79242</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-05T07:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Elapsed Time Calculation</title>
      <link>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586944#M79245</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am also not sure I followed the question setup, but assuming Elapsed Time is a continuously running clock, and you want to calculate time within each "Run Number" from zero to the duration of the run- this slightly longer alternative will do it in the units of the elapsed time column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Elapsed Time - Col Minimum( :Elapsed Time, :Run Number )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jan 2023 13:49:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/586944#M79245</guid>
      <dc:creator>GregF_JMP</dc:creator>
      <dc:date>2023-01-05T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Elapsed Time Calculation</title>
      <link>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/587161#M79262</link>
      <description>&lt;P&gt;This appears to me that you want automatically make a data table like this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamGardner_1-1672955013393.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48842i4F57D3401C86FD57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamGardner_1-1672955013393.png" alt="SamGardner_1-1672955013393.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a formula for the Elapsed Time Column like the one shown below.&amp;nbsp; It uses conditional If( ) and also the Lag( ) function to get the previous row's data from a column&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamGardner_0-1672954974687.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48841i46B73F8DB022DF4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="SamGardner_0-1672954974687.png" alt="SamGardner_0-1672954974687.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example data table attached.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 21:45:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Elapsed-Time-Calculation/m-p/587161#M79262</guid>
      <dc:creator>SamGardner</dc:creator>
      <dc:date>2023-01-05T21:45:41Z</dc:date>
    </item>
  </channel>
</rss>

