<?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 select only those samples that meet two or more criteria in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548735#M76544</link>
    <description>&lt;P&gt;Jim, thanks for your suggestion, but it remains beyond my novice level of understanding and ability to execute.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 17:33:56 GMT</pubDate>
    <dc:creator>dhagman</dc:creator>
    <dc:date>2022-09-23T17:33:56Z</dc:date>
    <item>
      <title>how to select only those samples that meet two or more criteria</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548216#M76511</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dhagman_0-1663861180563.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45696iCD9AC7084CB7AE08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dhagman_0-1663861180563.png" alt="dhagman_0-1663861180563.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i want to create a new column using Day1_Orig values wherein there are both Day1_Orig and Day1_Repeat values for the same SUBJID. So for instance, lines 113 and 114 have same SUBJID, so the new column would record the value of the Day1_Orig value in line 113 (834), but as there is no corresponding Day1_Repeat value for line 107 (641), this Day1_Orig value would not be included in the new column.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 15:58:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548216#M76511</guid>
      <dc:creator>dhagman</dc:creator>
      <dc:date>2023-06-09T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only those samples that meet two or more criteria</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548236#M76513</link>
      <description>&lt;P&gt;Here is how I would handle the issue&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="txnelson_0-1663882218911.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45719iBBA653F5F57C7C31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1663882218911.png" alt="txnelson_0-1663882218911.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = .;
If( :SUBJID != Lag( :SUBJID ),
	If( Col Number( :SUBJID, :SUBJID, :VISIT ) == 1,
		x = :TiterGeoMean;
		:Day 1 Repeat = .;
	,
		:Day 1 Repeat = :TiterGeoMean;
		x = .;
	)
);
x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 21:31:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548236#M76513</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-09-22T21:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only those samples that meet two or more criteria</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548289#M76517</link>
      <description>&lt;P&gt;Something like this might work (change column names):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Col Number(:O, :S) != 0 &amp;amp; Col Number(:R, :S),
	If(Col Cumulative Sum(!Is Missing(:O), :S) == 1,
		:O
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1663867639252.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45698i1843527D826AF93B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1663867639252.png" alt="jthi_0-1663867639252.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;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled 3",
	Add Rows(6),
	New Column("S", Numeric, "Continuous", Format("Best", 12), Set Values([89, 89, 96, 96, 96, 96])),
	New Column("O", Numeric, "Continuous", Format("Best", 12), Set Values([641, ., 834, ., ., .])),
	New Column("R", Numeric, "Continuous", Format("Best", 12), Set Values([., ., ., 230, ., .]))
);

dt &amp;lt;&amp;lt; New Column("Test", Numeric, Continuous, Formula(
	If(Col Number(:O, :S) != 0 &amp;amp; Col Number(:R, :S), /*check if both :o&lt;/img&gt; and :R have value for this :S*/
		If(Col Cumulative Sum(!IsMissing(:O), :S) == 1, /* Check if row is first found value for :o&lt;/img&gt; for this :S*/
			:O
		)
	);
));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 17:28:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548289#M76517</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-22T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only those samples that meet two or more criteria</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548733#M76543</link>
      <description>&lt;P&gt;Thank you, this works perfectly as long my dataset is sorted/organized such that the retest values always follow the originals.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 17:28:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548733#M76543</guid>
      <dc:creator>dhagman</dc:creator>
      <dc:date>2022-09-23T17:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only those samples that meet two or more criteria</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548735#M76544</link>
      <description>&lt;P&gt;Jim, thanks for your suggestion, but it remains beyond my novice level of understanding and ability to execute.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 17:33:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548735#M76544</guid>
      <dc:creator>dhagman</dc:creator>
      <dc:date>2022-09-23T17:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only those samples that meet two or more criteria</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548738#M76545</link>
      <description>&lt;P&gt;Seems to work fine for my simple test data but I might be missing something&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1663954689276.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45731i34E270AE0E6108C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1663954689276.png" alt="jthi_1-1663954689276.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 17:41:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-select-only-those-samples-that-meet-two-or-more-criteria/m-p/548738#M76545</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-23T17:41:07Z</dc:date>
    </item>
  </channel>
</rss>

