<?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: ranking and changing the order of tie values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276908#M55531</link>
    <description>&lt;P&gt;I&amp;nbsp;put a space in front of my company's name.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 12:52:10 GMT</pubDate>
    <dc:creator>AJCFreeman</dc:creator>
    <dc:date>2016-06-13T12:52:10Z</dc:date>
    <item>
      <title>ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276371#M55363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am ranking companies based on a metric. However when I have&amp;nbsp;a tie between my company and another one, I want my company to show up first. How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 21:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276371#M55363</guid>
      <dc:creator>AJCFreeman</dc:creator>
      <dc:date>2016-06-09T21:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276376#M55366</link>
      <description>&lt;P&gt;I suppose your rank value is an integer. Just always add 0.1 point to your company's rank&amp;nbsp;and it will be ahead in case of ties.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 23:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276376#M55366</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-06-09T23:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276400#M55370</link>
      <description>&lt;P&gt;You can define a new variable and add it to the table sorting order&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Cpny :$10. Metric;
datalines;
Company_1 1
Company_2 2
MyCompany 2
Company_3 3
;

data have_report;
set have;
order = cpny ne "MyCompany";
run;

/* List companies in descending order of my metric, but
 show MyCompany first in case of a tie. Other ties are sorted 
 by alphabetical order of company name. */
proc sql;
select cpny, metric
from have_report
order by metric desc, order, cpny;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jun 2016 02:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276400#M55370</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-10T02:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276494#M55395</link>
      <description>thanks it worked perfectly</description>
      <pubDate>Fri, 10 Jun 2016 13:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276494#M55395</guid>
      <dc:creator>AJCFreeman</dc:creator>
      <dc:date>2016-06-10T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276512#M55403</link>
      <description>I did all that to be able to order the data for a Gchart.&lt;BR /&gt;however my Gchart doesn't keep that order... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;any ideas?</description>
      <pubDate>Fri, 10 Jun 2016 14:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276512#M55403</guid>
      <dc:creator>AJCFreeman</dc:creator>
      <dc:date>2016-06-10T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276529#M55410</link>
      <description>&lt;P&gt;Create a sorted version of your dataset, switch to a SGPLOT VBAR (or HBAR) plot, and use XAXIS (or YAXIS) option DISCRETEORDER=DATA.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 15:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276529#M55410</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-10T15:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276640#M55452</link>
      <description>Or do this &lt;A href="http://support.sas.com/kb/24/916.html" target="_blank"&gt;http://support.sas.com/kb/24/916.html&lt;/A&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276640#M55452</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-06-11T00:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: ranking and changing the order of tie values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276908#M55531</link>
      <description>&lt;P&gt;I&amp;nbsp;put a space in front of my company's name.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 12:52:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ranking-and-changing-the-order-of-tie-values/m-p/276908#M55531</guid>
      <dc:creator>AJCFreeman</dc:creator>
      <dc:date>2016-06-13T12:52:10Z</dc:date>
    </item>
  </channel>
</rss>

