<?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: I need to compare several columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216555#M43268</link>
    <description>&lt;P&gt;Thanks a lot Jeff,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question.&lt;/P&gt;
&lt;P&gt;How to do the second part of the formula?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2019-07-08 a les 19.26.20.png" style="width: 177px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18210i29A2ABD9EBD633B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2019-07-08 a les 19.26.20.png" alt="Captura de pantalla 2019-07-08 a les 19.26.20.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>Mon, 08 Jul 2019 17:49:54 GMT</pubDate>
    <dc:creator>gallardet</dc:creator>
    <dc:date>2019-07-08T17:49:54Z</dc:date>
    <item>
      <title>I need to compare several columns</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216540#M43265</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with several columns with values that represent total votes obtained by political parties. I need a script that finds the greatest values of these columns and obtains the name of the column, i.e. the&amp;nbsp;political party.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manel&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 16:47:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216540#M43265</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2019-07-08T16:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: I need to compare several columns</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216552#M43266</link>
      <description>&lt;P&gt;You can do this with the &lt;A href="https://www.jmp.com/support/help/14-2/formula-editor.shtml#" target="_self"&gt;Formula Editor&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the &lt;A href="https://www.jmp.com/support/help/14-2/statistical-functions-2.shtml#2754448" target="_self"&gt;Maximum() function&lt;/A&gt; to find the max value in the columns and then the &lt;A href="https://www.jmp.com/support/help/14-2/conditional-and-logical-functions.shtml#2526203" target="_self"&gt;Match() function&lt;/A&gt; to match it to which column it came from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The attached data table has the example.&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="JMPScreenSnapz023.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18208iCEF94D6E372AC6C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMPScreenSnapz023.png" alt="JMPScreenSnapz023.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 17:02:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216552#M43266</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-07-08T17:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: I need to compare several columns</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216555#M43268</link>
      <description>&lt;P&gt;Thanks a lot Jeff,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question.&lt;/P&gt;
&lt;P&gt;How to do the second part of the formula?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2019-07-08 a les 19.26.20.png" style="width: 177px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18210i29A2ABD9EBD633B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2019-07-08 a les 19.26.20.png" alt="Captura de pantalla 2019-07-08 a les 19.26.20.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>Mon, 08 Jul 2019 17:49:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216555#M43268</guid>
      <dc:creator>gallardet</dc:creator>
      <dc:date>2019-07-08T17:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: I need to compare several columns</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216597#M43272</link>
      <description>&lt;P&gt;The Match() function is under the Conditionals section of the Formula Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the Maximum() funtion built and selected in the Editor, click on Conditionals -&amp;gt; Match. You'll be &lt;A href="https://www.jmp.com/support/help/14-2/use-the-match-conditional-function.shtml" target="_self"&gt;prompted about adding arguments&lt;/A&gt;, select "Do Not Add".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then click on the ^ button in the toolbar to add the four pairs of arguments and then fill them in.&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="ScreenFlow.gif" style="width: 978px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18213i431ACE9BF336F97C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenFlow.gif" alt="ScreenFlow.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 18:51:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/216597#M43272</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2019-07-08T18:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: I need to compare several columns</title>
      <link>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/535880#M75816</link>
      <description>&lt;P&gt;In script form :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New Column( "Maximum",
		Character,
		"Nominal",
		Formula(
			Match(
					Maximum(
						:Party A,
						:Party B,
						:Party C,
						:Party D
					),
				:Party A, "Party A",
				:Party B, "Party B",
				:Party C, "Party C",
				:Party D, "Party D"
			)
		));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Aug 2022 10:21:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/I-need-to-compare-several-columns/m-p/535880#M75816</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2022-08-22T10:21:55Z</dc:date>
    </item>
  </channel>
</rss>

