<?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: Col Score in reverse order options? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972985#M110584</link>
    <description>&lt;P&gt;You can combine it with Col Number for example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; New Column("Score Height", Formula(Col Score(:height)));
dt &amp;lt;&amp;lt; New Column("Score Height Reverse", Formula(Col Number(:height) - Col Score(:height) + 1));

dt &amp;lt;&amp;lt; New Column("Score Height by age", Formula(Col Score(:height, :age)));
dt &amp;lt;&amp;lt; New Column("Score Height by age Reverse", Formula(Col Number(:height, :age) - Col Score(:height, :age) + 1));

Write();
&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-1790138853222.png"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/118070i853BB9AA32242D85/image-size/medium?v=v2&amp;amp;px=400" alt="jthi_0-1790138853222.png" title="jthi_0-1790138853222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2026 04:49:11 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-09-23T04:49:11Z</dc:date>
    <item>
      <title>Col Score in reverse order options?</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972926#M110580</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;
&lt;P&gt;Is there an easy way to reverse the order using the Col Score() function?&amp;nbsp; The default is that it scores it by descending order, so if something has the highest value it is given the highest score and the smallest value is given the score of 1.&amp;nbsp; I'd like the highest value to be a score of 1 and the lowest value to be the lowest score.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any input!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2026 22:40:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972926#M110580</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2026-09-22T22:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Col Score in reverse order options?</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972953#M110582</link>
      <description>&lt;P&gt;Here is how I would do it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "Score Height",
	formula( col score(:Height))
);
New Column( "Height reverse",
	Formula( col max(:height)-:height + col min(:height))
);
current data table()&amp;lt;&amp;lt;rerun formulas;
New Column( "score Height reverse",
	set each value( col score(:height reverse))
);

current data table() &amp;lt;&amp;lt; delete columns(:height reverse);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2026 01:33:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972953#M110582</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-09-23T01:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Col Score in reverse order options?</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972985#M110584</link>
      <description>&lt;P&gt;You can combine it with Col Number for example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; New Column("Score Height", Formula(Col Score(:height)));
dt &amp;lt;&amp;lt; New Column("Score Height Reverse", Formula(Col Number(:height) - Col Score(:height) + 1));

dt &amp;lt;&amp;lt; New Column("Score Height by age", Formula(Col Score(:height, :age)));
dt &amp;lt;&amp;lt; New Column("Score Height by age Reverse", Formula(Col Number(:height, :age) - Col Score(:height, :age) + 1));

Write();
&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-1790138853222.png"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/118070i853BB9AA32242D85/image-size/medium?v=v2&amp;amp;px=400" alt="jthi_0-1790138853222.png" title="jthi_0-1790138853222.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2026 04:49:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Score-in-reverse-order-options/m-p/972985#M110584</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-09-23T04:49:11Z</dc:date>
    </item>
  </channel>
</rss>

