<?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: Column Formula to Determine Test Order for Repeated Samples in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820746#M99957</link>
    <description>&lt;P&gt;Thanks for the quick response, I was able to use the second method in your solution and that worked out.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 23:18:26 GMT</pubDate>
    <dc:creator>VT23</dc:creator>
    <dc:date>2024-12-04T23:18:26Z</dc:date>
    <item>
      <title>Column Formula to Determine Test Order for Repeated Samples</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820695#M99949</link>
      <description>&lt;P&gt;Attached is JMP file and want to replicate the Test Order column with column formula. Test Order column is based on SerialNo and TransactionBegDtm across multiple LotNo. Goal is to know if the SerialNo tested 1st vs 2nd based on TransactionBegDtm. I tried formula below, but was not able to get the correct matching sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt = Current Data Table();&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; New Column( "Duplicate", Formula( Col Cumulative Sum(If(Row() == Col Min(Row(), :SerialNo, :TransactionBegDtm, :LotNo), 1, 2), :SerialNo, :TransactionBegDtm) );&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 19:48:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820695#M99949</guid>
      <dc:creator>VT23</dc:creator>
      <dc:date>2024-12-04T19:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Column Formula to Determine Test Order for Repeated Samples</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820728#M99951</link>
      <description>&lt;P&gt;It is easiest of you sort your data first by transactionbegdtm to make sure the ordering is "correct", then you might be able to use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Cumulative Sum(1, :SerialNo, :LotNo))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also if there can only be either 1 or 2 as test order, you can use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	If(:TransactionBegDtm == Col Min(:TransactionBegDtm, :SerialNo, :LotNo), 
		1
	, 2
	)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2024 20:25:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820728#M99951</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-12-04T20:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Column Formula to Determine Test Order for Repeated Samples</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820746#M99957</link>
      <description>&lt;P&gt;Thanks for the quick response, I was able to use the second method in your solution and that worked out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 23:18:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Formula-to-Determine-Test-Order-for-Repeated-Samples/m-p/820746#M99957</guid>
      <dc:creator>VT23</dc:creator>
      <dc:date>2024-12-04T23:18:26Z</dc:date>
    </item>
  </channel>
</rss>

