<?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 Sorting percent such that 0 is at the top in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sorting-percent-such-that-0-is-at-the-top/m-p/287731#M19634</link>
    <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4272iE1B009C24E2CA3BF/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Grouping.PNG" title="Grouping.PNG" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=WORK.test nowd;
	column 'BN'n AI ShortName '# Dispersed'n '# Done'n '# Try'n '# UNSUCCESSFUL'n '# NO UPDATES'n cv1 DIFFERENCE Productivity;
	define 'BN'n / /*group 'Branch Name'*/ format=$50. missing order=formatted style=[just= left] ;
	compute 'BN'n;
		if 'BN'n ne ' ' then hold1='BN'n;
		if 'BN'n eq ' ' then 'BN'n=hold1;
	endcomp;
	define AI / /*group 'AI'*/ format=$20. missing order=formatted style=[just= left];
	compute AI;
		if AI ne ' ' then hold2=AI;
		if AI eq ' ' then AI=hold2;
	endcomp;
	define ShortName / /*group 'ShortName'*/ format=$50. missing order=formatted style=[just= left];
	compute ShortName;
		if ShortName ne ' ' then hold3=ShortName;
		if ShortName eq ' ' then ShortName=hold3;
	endcomp;
	define '# Dispersed'n / analysis SUM '# Dispersed' missing style=[just= center];
	define '# Done'n / analysis SUM '# Done' missing style=[just= center];
	define '# Try'n / analysis SUM '# Try' missing style=[just= center];
	define '# UNSUCCESSFUL'n / analysis SUM '# UNSUCCESSFUL' missing style=[just= center];
	define '# NO UPDATES'n / group missing noprint style=[just= center];
	define cv1 / computed '# NO UPDATES' missing style=[just= center];
	compute cv1;
		if '# NO UPDATES'n ne . then hold4='# NO UPDATES'n;
		cv1=hold4;
	endcomp;
	define DIFFERENCE / analysis SUM 'DIFFERENCE' missing style=[just= center];
	define Productivity / analysis SUM 'Productivity' format=PERCENT10.1 missing STYLE={BACKGROUND=TRAFFIC_INDICATOR. just= center};
	run;
quit;
TITLE; FOOTNOTE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen in the image, 0% is being rank at the bottom. Is there a way to sort it such that 0 is at the top?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2016 08:14:00 GMT</pubDate>
    <dc:creator>XxnightsnowXx</dc:creator>
    <dc:date>2016-07-28T08:14:00Z</dc:date>
    <item>
      <title>Sorting percent such that 0 is at the top</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sorting-percent-such-that-0-is-at-the-top/m-p/287731#M19634</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4272iE1B009C24E2CA3BF/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="Grouping.PNG" title="Grouping.PNG" /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=WORK.test nowd;
	column 'BN'n AI ShortName '# Dispersed'n '# Done'n '# Try'n '# UNSUCCESSFUL'n '# NO UPDATES'n cv1 DIFFERENCE Productivity;
	define 'BN'n / /*group 'Branch Name'*/ format=$50. missing order=formatted style=[just= left] ;
	compute 'BN'n;
		if 'BN'n ne ' ' then hold1='BN'n;
		if 'BN'n eq ' ' then 'BN'n=hold1;
	endcomp;
	define AI / /*group 'AI'*/ format=$20. missing order=formatted style=[just= left];
	compute AI;
		if AI ne ' ' then hold2=AI;
		if AI eq ' ' then AI=hold2;
	endcomp;
	define ShortName / /*group 'ShortName'*/ format=$50. missing order=formatted style=[just= left];
	compute ShortName;
		if ShortName ne ' ' then hold3=ShortName;
		if ShortName eq ' ' then ShortName=hold3;
	endcomp;
	define '# Dispersed'n / analysis SUM '# Dispersed' missing style=[just= center];
	define '# Done'n / analysis SUM '# Done' missing style=[just= center];
	define '# Try'n / analysis SUM '# Try' missing style=[just= center];
	define '# UNSUCCESSFUL'n / analysis SUM '# UNSUCCESSFUL' missing style=[just= center];
	define '# NO UPDATES'n / group missing noprint style=[just= center];
	define cv1 / computed '# NO UPDATES' missing style=[just= center];
	compute cv1;
		if '# NO UPDATES'n ne . then hold4='# NO UPDATES'n;
		cv1=hold4;
	endcomp;
	define DIFFERENCE / analysis SUM 'DIFFERENCE' missing style=[just= center];
	define Productivity / analysis SUM 'Productivity' format=PERCENT10.1 missing STYLE={BACKGROUND=TRAFFIC_INDICATOR. just= center};
	run;
quit;
TITLE; FOOTNOTE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen in the image, 0% is being rank at the bottom. Is there a way to sort it such that 0 is at the top?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sorting-percent-such-that-0-is-at-the-top/m-p/287731#M19634</guid>
      <dc:creator>XxnightsnowXx</dc:creator>
      <dc:date>2016-07-28T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting percent such that 0 is at the top</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sorting-percent-such-that-0-is-at-the-top/m-p/287734#M19636</link>
      <description>&lt;PRE class=" language-sas"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Try to apply /order order=&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;define&lt;/SPAN&gt; Productivity &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; &lt;STRONG&gt;order order=internal &lt;/STRONG&gt;&lt;/CODE&gt;&lt;CODE class="  language-sas"&gt;analysis &lt;SPAN class="token function"&gt;SUM&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'Productivity'&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;PERCENT10&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;missing&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;STYLE&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;BACKGROUND&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;TRAFFIC_INDICATOR&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; just&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; center&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;quit&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sorting-percent-such-that-0-is-at-the-top/m-p/287734#M19636</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-07-28T08:50:21Z</dc:date>
    </item>
  </channel>
</rss>

