<?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: conditional match with two columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638480#M83630</link>
    <description>&lt;P&gt;Here are 2 similar approaches to solve your issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
dt &amp;lt;&amp;lt; New Column( "Output 2",
	formula(
		theMax = Col Maximum( :EtOH %, :Batch );
		If( theMax == :EtOH %,
			:EtOH %,
			.
		);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
dt &amp;lt;&amp;lt; New Column( "Output 3" );
for each row(
	theMax = Col Maximum( :EtOH %, :Batch );
		If( theMax == :EtOH %,
			:Output3 = :EtOH %,
			:Output3 = .
		);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 03 Jun 2023 05:48:57 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-06-03T05:48:57Z</dc:date>
    <item>
      <title>conditional match with two columns</title>
      <link>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638457#M83627</link>
      <description>&lt;P&gt;Hi JMP users&lt;/P&gt;&lt;P&gt;How to write a script to print a value from column:EtOH % form maximum index of : fermentation Age .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example: if the maximum fermentation Age for Batch 03-05-2022 is 68 then the EtOH % value (13.45) should be picked and printed to the output column.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chandankishor66_0-1685763069997.png" style="width: 289px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53393i6E4512B2AEC2DAB7/image-dimensions/289x478?v=v2" width="289" height="478" role="button" title="chandankishor66_0-1685763069997.png" alt="chandankishor66_0-1685763069997.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached a JMP table here.&lt;/P&gt;&lt;P&gt;Looking forward for your suggestion&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:11:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638457#M83627</guid>
      <dc:creator>chandankishor66</dc:creator>
      <dc:date>2023-06-09T16:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: conditional match with two columns</title>
      <link>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638480#M83630</link>
      <description>&lt;P&gt;Here are 2 similar approaches to solve your issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
dt &amp;lt;&amp;lt; New Column( "Output 2",
	formula(
		theMax = Col Maximum( :EtOH %, :Batch );
		If( theMax == :EtOH %,
			:EtOH %,
			.
		);
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
dt &amp;lt;&amp;lt; New Column( "Output 3" );
for each row(
	theMax = Col Maximum( :EtOH %, :Batch );
		If( theMax == :EtOH %,
			:Output3 = :EtOH %,
			:Output3 = .
		);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Jun 2023 05:48:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638480#M83630</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-03T05:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: conditional match with two columns</title>
      <link>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638483#M83631</link>
      <description>&lt;P&gt;Thank you, Jim.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 06:46:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/conditional-match-with-two-columns/m-p/638483#M83631</guid>
      <dc:creator>chandankishor66</dc:creator>
      <dc:date>2023-06-03T06:46:35Z</dc:date>
    </item>
  </channel>
</rss>

