<?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 formula to provide greatest numerical value from multiple columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533362#M75630</link>
    <description>&lt;P&gt;I have two related columns with numerical values and I cannot figure out how to create a formula column that delivers the maximal value of the two input columns. Everything I try ends up with an "else" in the formula and I don't think I want that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks if you know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dr. DeCarlo&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:53:08 GMT</pubDate>
    <dc:creator>aadecarlojr</dc:creator>
    <dc:date>2023-06-10T23:53:08Z</dc:date>
    <item>
      <title>formula to provide greatest numerical value from multiple columns</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533362#M75630</link>
      <description>&lt;P&gt;I have two related columns with numerical values and I cannot figure out how to create a formula column that delivers the maximal value of the two input columns. Everything I try ends up with an "else" in the formula and I don't think I want that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks if you know how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dr. DeCarlo&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:53:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533362#M75630</guid>
      <dc:creator>aadecarlojr</dc:creator>
      <dc:date>2023-06-10T23:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: formula to provide greatest numerical value from multiple columns</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533366#M75631</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;max( col max(:col1), col max(:col) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think this will give you the maximum value for the 2 columns&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 00:08:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533366#M75631</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-13T00:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: formula to provide greatest numerical value from multiple columns</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533978#M75668</link>
      <description>&lt;P&gt;It's not clear exactly what you want, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14837"&gt;@aadecarlojr&lt;/a&gt;. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the maximum value across &lt;EM&gt;all&lt;/EM&gt; the values of the two given columns then the JSL that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;gave above will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If, on the other hand, you want something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;&lt;STRONG&gt;Max of A and B&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;8&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;7&lt;/P&gt;
&lt;/TD&gt;
&lt;TD valign="middle"&gt;
&lt;P&gt;8&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Then the formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Maximum(:A, :B)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will give you that.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-08-15_15-26-54.698.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44794i2D6E27BCB6B75401/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-08-15_15-26-54.698.png" alt="2022-08-15_15-26-54.698.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 19:27:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/533978#M75668</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2022-08-15T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: formula to provide greatest numerical value from multiple columns</title>
      <link>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/534338#M75691</link>
      <description>&lt;P&gt;Thanks to Jeff and TxNelson. I did want the latter, row by row maximum of two columns and that works.&amp;nbsp; In my research we entered separate R and L data but also want a column variable that contains the max from either R or L.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Love solutions!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:33:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/formula-to-provide-greatest-numerical-value-from-multiple/m-p/534338#M75691</guid>
      <dc:creator>aadecarlojr</dc:creator>
      <dc:date>2022-08-16T15:33:46Z</dc:date>
    </item>
  </channel>
</rss>

