<?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 could I script so that I get back the correct duration for each row? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/388018#M63820</link>
    <description>&lt;P&gt;You can&amp;nbsp; have JMP script this for you if you are willing to create 2 extra columns--&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) select the columns T7 through T7H, then right-click on one of the column headers in this group and select New Formula Column &amp;gt; Combine &amp;gt; Maximum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Repeat the process above, but using the columns T8 through T8H.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Select these 2 newly-created columns, then right-click on one of their headers and select New Formula Column &amp;gt; Combine &amp;gt; Difference (reverse order).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work for you because you don't like having the 2 extra columns, take a look at the formulas in the columns you created in step 1 and 2 above. These will show you how to write the formulas you need... basically you will just subtract the first of these formulas from the second to create your single "master" formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 20:15:58 GMT</pubDate>
    <dc:creator>brady_brady</dc:creator>
    <dc:date>2021-05-24T20:15:58Z</dc:date>
    <item>
      <title>How could I script so that I get back the correct duration for each row?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/387983#M63818</link>
      <description>&lt;P&gt;I have a table consisting of timestamps (attached).&lt;/P&gt;&lt;P&gt;They are categorized into T7 timestamps which could be any of T7/T7A/B/C/D…..H etc. and T8 timestamps which could be any of T8/T8A/B/C/D….H etc.&lt;/P&gt;&lt;P&gt;I need to subtract the largest T7 value from the largest T8 value available for that row and I have made a column &amp;nbsp;“T8-T7” to identify those values.&lt;/P&gt;&lt;P&gt;How could I script so that I get back the correct duration for each row?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fiona&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:47:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/387983#M63818</guid>
      <dc:creator>fionaweston</dc:creator>
      <dc:date>2023-06-09T19:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How could I script so that I get back the correct duration for each row?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/388018#M63820</link>
      <description>&lt;P&gt;You can&amp;nbsp; have JMP script this for you if you are willing to create 2 extra columns--&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) select the columns T7 through T7H, then right-click on one of the column headers in this group and select New Formula Column &amp;gt; Combine &amp;gt; Maximum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Repeat the process above, but using the columns T8 through T8H.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) Select these 2 newly-created columns, then right-click on one of their headers and select New Formula Column &amp;gt; Combine &amp;gt; Difference (reverse order).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work for you because you don't like having the 2 extra columns, take a look at the formulas in the columns you created in step 1 and 2 above. These will show you how to write the formulas you need... basically you will just subtract the first of these formulas from the second to create your single "master" formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 20:15:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/388018#M63820</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-05-24T20:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How could I script so that I get back the correct duration for each row?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/388028#M63821</link>
      <description>Awesome, works great!&lt;BR /&gt;I don't mind the extra columns:)</description>
      <pubDate>Mon, 24 May 2021 20:24:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-I-script-so-that-I-get-back-the-correct-duration-for/m-p/388028#M63821</guid>
      <dc:creator>fionaweston</dc:creator>
      <dc:date>2021-05-24T20:24:59Z</dc:date>
    </item>
  </channel>
</rss>

